diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/agrep/Makefile | 1 | ||||
-rw-r--r-- | textproc/agrep/files/patch-mgrep.c | 16 |
2 files changed, 12 insertions, 5 deletions
diff --git a/textproc/agrep/Makefile b/textproc/agrep/Makefile index f2cd27fea520..c0d63dbf4459 100644 --- a/textproc/agrep/Makefile +++ b/textproc/agrep/Makefile @@ -8,6 +8,7 @@ PORTNAME= agrep PORTVERSION= 2.04 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ftp://ftp.cs.arizona.edu/agrep/ EXTRACT_SUFX= .tar.Z diff --git a/textproc/agrep/files/patch-mgrep.c b/textproc/agrep/files/patch-mgrep.c index 439326807c9f..d7ac5b9730c8 100644 --- a/textproc/agrep/files/patch-mgrep.c +++ b/textproc/agrep/files/patch-mgrep.c @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- mgrep.c.orig Sat Apr 11 00:12:27 1992 -+++ mgrep.c Sun Jul 21 03:50:47 2002 +--- mgrep.c.orig Thu Jun 26 21:03:50 2003 ++++ mgrep.c Thu Jun 26 21:03:53 2003 @@ -1,6 +1,7 @@ /* Copyright (c) 1991 Sun Wu and Udi Manber. All Rights Reserved. */ /* multipattern matcher */ @@ -11,3 +8,12 @@ $FreeBSD$ #include <ctype.h> #define MAXPAT 256 #define MAXLINE 1024 +@@ -85,7 +86,7 @@ + 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; |