]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
gprint: fix comma after ip addresses
authorCorubba Smith <corubba@gmx.de>
Sun, 16 Feb 2025 14:03:51 +0000 (15:03 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 11 Mar 2025 15:15:29 +0000 (16:15 +0100)
commitbebb752ce4d4d9d6bfedeb595fef8fdee42dd98a
tree8b126eb557867720795ba79a6d7b9d09a4ea037b
parent2d8b64ab788ea2fbe19de03a10b5f7e7237cff31
gprint: fix comma after ip addresses

Do the same as the oprint plugin: let inet_ntop() write to a temporary
buffer, and then write that buffer content and the trailing comma to the
actual output buffer in one go.

Fixes: f04bf6794d11 ("gprint, oprint: use inet_ntop to format ip addresses")
Signed-off-by: Corubba Smith <corubba@gmx.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
output/ulogd_output_GPRINT.c