summaryrefslogtreecommitdiffstats
path: root/src/expr
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-19 01:51:57 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-04-19 01:55:58 +0200
commit1c8a6c57b0936ca24fe2dd8455c47d6a2fb5cb7f (patch)
tree71ab9e76a4b187bdc0db5e554497147f4417766f /src/expr
parentb0f2066ac0ebf3c5151ae2ece231b2317dfa3a5f (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/lookup.c b/src/expr/lookup.c
index 003554b..1046615 100644
--- a/src/expr/lookup.c
+++ b/src/expr/lookup.c
@@ -169,7 +169,7 @@ nft_rule_expr_lookup_snprintf_default(char *buf, size_t size,
{
int len = size, offset = 0, ret;
- ret = snprintf(buf, len, "set=%s sreg=%u dreg=%u\n",
+ ret = snprintf(buf, len, "set=%s sreg=%u dreg=%u",
l->set_name, l->sreg, l->dreg);
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);