diff options
Diffstat (limited to 'utils/conntrack_events.c')
-rw-r--r-- | utils/conntrack_events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/conntrack_events.c b/utils/conntrack_events.c index ab3125c..1f115e2 100644 --- a/utils/conntrack_events.c +++ b/utils/conntrack_events.c @@ -11,7 +11,7 @@ static int event_cb(enum nf_conntrack_msg_type type, static int n = 0; char buf[1024]; - nfct_snprintf(buf, 1024, ct, type, NFCT_O_XML, NFCT_OF_TIME); + nfct_snprintf(buf, sizeof(buf), ct, type, NFCT_O_XML, NFCT_OF_TIME); printf("%s\n", buf); if (++n == 10) |