15 lines
496 B
Plaintext
15 lines
496 B
Plaintext
$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, ...)
|
|
*tptr++ = buf[i];
|
|
}
|
|
|
|
- memset(buf, 0, MAXSTRLEN);
|
|
- strncpy(buf, tbuf, MAXSTRLEN);
|
|
+ memset(buf, 0, sizeof(buf));
|
|
+ strncpy(buf, tbuf, sizeof(buf));
|
|
}
|
|
|
|
syslog (priority, "%s", buf);
|