diff options
Diffstat (limited to 'qa/test_filter.c')
-rw-r--r-- | qa/test_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/test_filter.c b/qa/test_filter.c index 42d067f..35fdbec 100644 --- a/qa/test_filter.c +++ b/qa/test_filter.c @@ -14,7 +14,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_PLAIN, NFCT_OF_TIME); + nfct_snprintf(buf, sizeof(buf), ct, type, NFCT_O_PLAIN, NFCT_OF_TIME); printf("%s\n", buf); if (++n == 10) |