From 1c8a6c57b0936ca24fe2dd8455c47d6a2fb5cb7f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 19 Apr 2013 01:51:57 +0200 Subject: src: remove trailing \n from all nft_*_snprintf functions The caller should add it in case it needs it. Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 849cb41..3945676 100644 --- a/src/rule.c +++ b/src/rule.c @@ -494,8 +494,6 @@ static int nft_rule_snprintf_default(char *buf, size_t size, struct nft_rule *r, ret = expr->ops->snprintf(buf+offset, len, type, flags, expr); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); } - ret = snprintf(buf+offset-1, len, "\n"); - SNPRINTF_BUFFER_SIZE(ret, size, len, offset); return ret; } -- cgit v1.2.3