openbsd-ports/www/sarg/patches/patch-squidguard_log_c
aanriot 87ee110593 - use log files paths accordingly to www/squid.
- fix SYSCONFDIR and other substitutions.

from maintainer Douglas Santos with a few changes;
inputs and ok alek@
2006-01-28 21:22:07 +00:00

13 lines
472 B
Plaintext

$OpenBSD: patch-squidguard_log_c,v 1.2 2006/01/28 21:22:07 aanriot Exp $
--- squidguard_log.c.orig Tue Nov 29 17:39:45 2005
+++ squidguard_log.c Thu Jan 26 21:31:44 2006
@@ -105,7 +105,7 @@ void read_log(char *wentp, FILE *fp_ou)
if (strcmp(user,"-") == 0) {
strcpy(user,ip);
- bzero(ip, 30);
+ bzero(ip, sizeof(ip));
}
sprintf(tmp6,"%s %s%s%s %s %s %s %s\n",user,year,mon,day,hour,ip,url,list);
fputs(tmp6, fp_ou);