cbb6a6bf82
a user named "log"; from sarg bugtracker via freebsd also, fix sprintf and rcs id; from maintainer Douglas Santos thanks to aanriot@, who found some errors when i merged Douglas Santos diff ok aanriot@ and maintainer Douglas Santos
13 lines
473 B
Plaintext
13 lines
473 B
Plaintext
$OpenBSD: patch-squidguard_log_c,v 1.3 2007/06/22 12:48:25 martynas Exp $
|
|
--- squidguard_log.c.orig Tue Jan 2 21:11:26 2007
|
|
+++ squidguard_log.c Wed Jun 20 21:25:08 2007
|
|
@@ -148,7 +148,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);
|