1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/misc/logsurfer+/files/patch-ad
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
329 B
Plaintext

--- src/readcf.c.orig Fri Feb 16 07:45:31 1996
+++ src/readcf.c Fri May 28 14:28:07 1999
@@ -112,6 +112,7 @@
(void) fprintf(stderr, "memory problems reading configfile\n");
return(1);
}
+ buffer[0]='\0';
/* dito for one complete configline */
cfline_size=1024;
if ( (cfline=(char *)malloc(cfline_size)) == NULL ) {