21 lines
634 B
Plaintext
21 lines
634 B
Plaintext
$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 */
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#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;
|