Patchwork [libnftables,3/3] expr: fix display of dreg expression

login
register
mail settings
Submitter Eric Leblond
Date June 4, 2013, 8:05 a.m.
Message ID <1370333124-11674-4-git-send-email-eric@regit.org>
Download mbox | patch
Permalink /patch/248484/
State Accepted
Headers show

Comments

Eric Leblond - June 4, 2013, 8:05 a.m.
Signed-off-by: Eric Leblond <eric@regit.org>
---
 src/expr/immediate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Pablo Neira - June 5, 2013, 3:53 a.m.
Also applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/src/expr/immediate.c b/src/expr/immediate.c
index 7cfb4bf..295054d 100644
--- a/src/expr/immediate.c
+++ b/src/expr/immediate.c
@@ -335,7 +335,7 @@  nft_rule_expr_immediate_snprintf_default(char *buf, size_t len,
 	int size = len, offset = 0, ret;
 	struct nft_expr_immediate *imm = (struct nft_expr_immediate *)e->data;
 
-	ret = snprintf(buf, len, "dreg=%u", imm->dreg);
+	ret = snprintf(buf, len, "dreg=%u ", imm->dreg);
 	SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
 
 	if (e->flags & (1 << NFT_EXPR_IMM_DATA)) {