2012-07-08 15:24:18 -04:00
|
|
|
$OpenBSD: patch-common_argus_util_c,v 1.3 2012/07/08 19:24:18 steven Exp $
|
|
|
|
--- common/argus_util.c.orig Tue Apr 17 18:22:02 2012
|
|
|
|
+++ common/argus_util.c Wed Jun 27 22:51:25 2012
|
|
|
|
@@ -20457,8 +20457,8 @@ ArgusLog (int priority, char *fmt, ...)
|
2008-06-30 01:20:42 -04:00
|
|
|
*tptr++ = buf[i];
|
|
|
|
}
|
|
|
|
|
|
|
|
- memset(buf, 0, MAXSTRLEN);
|
|
|
|
- strncpy(buf, tbuf, MAXSTRLEN);
|
|
|
|
+ memset(buf, 0, sizeof(buf));
|
|
|
|
+ strncpy(buf, tbuf, sizeof(buf));
|
|
|
|
}
|
2010-04-15 15:15:19 -04:00
|
|
|
|
2012-07-08 15:24:18 -04:00
|
|
|
syslog (priority, "%s", buf);
|