openbsd-ports/net/argus-clients/patches/patch-common_argus_util_c
2010-04-15 19:15:19 +00:00

15 lines
490 B
Plaintext

$OpenBSD: patch-common_argus_util_c,v 1.2 2010/04/15 19:16:42 steven Exp $
--- common/argus_util.c.orig Thu Dec 10 18:17:54 2009
+++ common/argus_util.c Sat Apr 10 12:50:16 2010
@@ -17563,8 +17563,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, buf);