missing format string argument

This commit is contained in:
avsm 2003-04-30 14:21:58 +00:00
parent 9c0b38f448
commit 610dd307be

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-mgrep_c,v 1.1 2002/07/21 01:48:42 naddy Exp $
--- mgrep.c.orig Sun Jul 21 03:43:32 2002
+++ mgrep.c Sun Jul 21 03:43:47 2002
$OpenBSD: patch-mgrep_c,v 1.2 2003/04/30 14:21:58 avsm Exp $
--- mgrep.c.orig Fri Apr 10 23:12:27 1992
+++ mgrep.c Wed Apr 30 15:19:11 2003
@@ -1,6 +1,7 @@
/* Copyright (c) 1991 Sun Wu and Udi Manber. All Rights Reserved. */
/* multipattern matcher */
@ -9,3 +9,12 @@ $OpenBSD: patch-mgrep_c,v 1.1 2002/07/21 01:48:42 naddy Exp $
#include <ctype.h>
#define MAXPAT 256
#define MAXLINE 1024
@@ -85,7 +86,7 @@ int fp;
if(p!=0 && p < p_size) p_size = p;
}
if(p_size == 0) {
- fprintf(stderr, "%s: the pattern file is empty\n");
+ fprintf(stderr, "%s: the pattern file is empty\n", Progname);
exit(2);
}
if(length > 400 && p_size > 2) LONG = 1;