]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_comment: silence truncation warning
authorFlorian Westphal <fw@strlen.de>
Fri, 30 Mar 2018 20:11:58 +0000 (22:11 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 10 Apr 2018 07:33:39 +0000 (09:33 +0200)
commit24110b5b8573c141e7fa409ecff9307ee6171a33
tree5acd9377348d635c718fc6320b51932bf99c138f
parent98fc8ce672049f4407b5abe7c87745494443c831
libxt_comment: silence truncation warning

gcc warned here:
libxt_comment.c:62 output may be truncated before the last format character [-Wformat-truncation=]
snprintf(comment, XT_MAX_COMMENT_LEN, "\"%s\"" ...

It tells us that the '"' might not fit anymore, so increase output
buffer size to make room for "" escapes too.

Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_comment.c