openbsd-ports/net/argus-clients/patches/patch-common_argus_util_c
steven c4d728ffab import argus-clients 3.0.0
Argus data clients support a range of operations on binary flow data
from Argus, such as sorting, aggregation, archival and reporting.

ok naddy@ sthen@
2008-06-30 05:20:42 +00:00

15 lines
493 B
Plaintext

$OpenBSD: patch-common_argus_util_c,v 1.1.1.1 2008/06/30 05:20:42 steven Exp $
--- common/argus_util.c.orig Wed Jun 25 23:43:02 2008
+++ common/argus_util.c Wed Jun 25 23:43:26 2008
@@ -15424,8 +15424,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);