diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2003-02-16 03:46:05 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2003-02-16 03:46:05 +0000 |
commit | 6c0d559d87016971a56c12917c635b5f066fbf73 (patch) | |
tree | 6bce324c51f0977639b5eb28f517276727e3a892 /usr.bin/grep | |
parent | 669dd1d299341f9a28542390e3418c85251d6650 (diff) |
Fix format string bug. I believe this grep is currently not used (in
favor of the GNU version), but it gets fixed anyways. ok mickey@
Diffstat (limited to 'usr.bin/grep')
-rw-r--r-- | usr.bin/grep/grep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index c613ac12672..9d472dd5a81 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.1 2001/09/21 23:12:00 deraadt Exp $ */ +/* $OpenBSD: grep.c,v 1.2 2003/02/16 03:46:04 cloder Exp $ */ /*- * Copyright (c) 2000 Carson Harding. All rights reserved. @@ -30,7 +30,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: grep.c,v 1.1 2001/09/21 23:12:00 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: grep.c,v 1.2 2003/02/16 03:46:04 cloder Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -367,7 +367,7 @@ load_patt(char *fname) fr = fopen(fname, "r"); if (!fr) - err(2, fname); + err(2, "%s", fname); while ((buf = fgetln(fr, &len)) != NULL) { if (buf[len-1] == '\n') buf[--len] = '\0'; |