diff options
Diffstat (limited to 'utils/ctexp_events.c')
-rw-r--r-- | utils/ctexp_events.c | 2 |
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) |