nfq: consistent nfq_snprintf_xml() return value with snprintf()
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 11 Jul 2010 11:22:29 +0000 (13:22 +0200)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:05 +0000 (14:12 +0100)
commitb1556f663ef68525b55ec14f605f8c6bce8676b6
tree7dc6733f9302bce1160e8e4079d76b0132413b0e
parent0dc0678d2e130978ed2b3c05f68dc514662b8cda
nfq: consistent nfq_snprintf_xml() return value with snprintf()

With this patch, nfq_snprintf_xml() returns the number of characters
printed. If the output was truncated, then the return value is the
number of characters that would have been written if enough space
had been available. This makes nfq_snprintf_xml() consistent with
the behaviour of snprintf().

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/libnetfilter_queue.c