From 28cd69119c5901938ca708dc66c3eeb357f3b38c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Nov 2010 22:50:57 +0100 Subject: utils: use sizeof(buf) over hardcoded number Signed-off-by: Jan Engelhardt --- qa/test_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qa') 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) -- cgit v1.2.3