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:
parent
4706f225c9
commit
2737850e66
3
pgrep.c
3
pgrep.c
@ -497,8 +497,7 @@ static regex_t * do_regcomp (void)
|
|||||||
|
|
||||||
if (re_err) {
|
if (re_err) {
|
||||||
regerror (re_err, preg, errbuf, sizeof(errbuf));
|
regerror (re_err, preg, errbuf, sizeof(errbuf));
|
||||||
fputs(errbuf,stderr);
|
xerrx(EXIT_USAGE, errbuf);
|
||||||
exit (EXIT_USAGE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return preg;
|
return preg;
|
||||||
|
Loading…
Reference in New Issue
Block a user