$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);