freebsd-ports/misc/logsurfer+/files/patch-ac
Steve Price 43e5ccb576 Fix a stack overflow problem with an empty config file.
PR:		11834
Submitted by:	maintainer
1999-05-29 04:31:33 +00:00

10 lines
316 B
Text

--- src/logsurfer.c.orig Mon Apr 8 10:15:53 1996
+++ src/logsurfer.c Fri May 28 14:28:06 1999
@@ -382,6 +382,7 @@
(void) fprintf(stderr, "unable to allocate memory for logline_buffer\n");
exit(99);
}
+ logline_buffer[0]='\0';
while ( (opt = getopt(argc, argv, "fc:d:l:p:r:s")) != EOF )
switch(opt) {