From b0f2066ac0ebf3c5151ae2ece231b2317dfa3a5f Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Fri, 19 Apr 2013 01:37:23 +0200 Subject: src: remove trailing newlines, tabs and spaces from XML format Delete all \n and \t from XML output, any reasonable XML viewer already does the nifty formatting for us. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/expr/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/expr/lookup.c') diff --git a/src/expr/lookup.c b/src/expr/lookup.c index 550c850..003554b 100644 --- a/src/expr/lookup.c +++ b/src/expr/lookup.c @@ -156,7 +156,7 @@ nft_rule_expr_lookup_snprintf_xml(char *buf, size_t size, { int len = size, offset = 0, ret; - ret = snprintf(buf, len, "%s%u%u\n", + ret = snprintf(buf, len, "%s%u%u", l->set_name, l->sreg, l->dreg); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); -- cgit v1.2.3