pgrep: Add a newline after regex error messages

The message from 'regerror' does not include a newline.

Test with `pgrep '*'`.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Tom Levy 2019-11-01 02:17:54 +00:00 committed by Craig Small
parent 4706f225c9
commit 2737850e66

View File

@ -497,8 +497,7 @@ static regex_t * do_regcomp (void)
if (re_err) {
regerror (re_err, preg, errbuf, sizeof(errbuf));
fputs(errbuf,stderr);
exit (EXIT_USAGE);
xerrx(EXIT_USAGE, errbuf);
}
}
return preg;