1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
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

11 lines
316 B
Plaintext

--- 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) {