Add an end of line in the exit of ruleset. Signed-off-by: Ana Rey <anarey@xxxxxxxxx> --- src/ruleset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ruleset.c b/src/ruleset.c index 3cbec09..181aeae 100644 --- a/src/ruleset.c +++ b/src/ruleset.c @@ -818,7 +818,7 @@ nft_ruleset_do_snprintf(char *buf, size_t size, const struct nft_ruleset *rs, SNPRINTF_BUFFER_SIZE(ret, size, len, offset); } - ret = snprintf(buf+offset, size, "%s", nft_ruleset_o_closetag(type)); + ret = snprintf(buf+offset, size, "%s\n", nft_ruleset_o_closetag(type)); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); return offset; -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html