grep: better regerror message

This commit is contained in:
Connor Lane Smith 2012-05-12 18:01:27 +01:00
parent cd73d1b330
commit 1360f568bb
1 changed files with 1 additions and 1 deletions

2
grep.c
View File

@ -51,7 +51,7 @@ main(int argc, char *argv[])
char buf[BUFSIZ];
regerror(n, &preg, buf, sizeof buf);
enprintf(Error, "%s\n", buf);
enprintf(Error, "invalid pattern: %s\n", buf);
}
many = (argc > optind+1);
if(optind == argc)