summaryrefslogtreecommitdiffstats
path: root/utils/ctexp_events.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-09 22:50:57 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-11-09 22:50:57 +0100
commit28cd69119c5901938ca708dc66c3eeb357f3b38c (patch)
treef54056747cb84f55db0f5050bc93abd72a666994 /utils/ctexp_events.c
parentc987b0ca80865a8202fec52f41a8d72fc923fc2a (diff)
utils: use sizeof(buf) over hardcoded number
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'utils/ctexp_events.c')
-rw-r--r--utils/ctexp_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ctexp_events.c b/utils/ctexp_events.c
index 1df5729..ec459e4 100644
--- a/utils/ctexp_events.c
+++ b/utils/ctexp_events.c
@@ -11,7 +11,7 @@ ct_event_cb(enum nf_conntrack_msg_type type,struct nf_conntrack *ct, void *data)
{
char buf[1024];
- nfct_snprintf(buf, 1024, ct, type, NFCT_O_PLAIN, NFCT_OF_TIME);
+ nfct_snprintf(buf, sizeof(buf), ct, type, NFCT_O_PLAIN, NFCT_OF_TIME);
printf("[CT] %s\n", buf);
if (++n == 20)