diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-11-09 22:50:57 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-11-09 22:50:57 +0100 |
commit | 28cd69119c5901938ca708dc66c3eeb357f3b38c (patch) | |
tree | f54056747cb84f55db0f5050bc93abd72a666994 /qa/test_filter.c | |
parent | c987b0ca80865a8202fec52f41a8d72fc923fc2a (diff) |
utils: use sizeof(buf) over hardcoded number
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
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) |