summaryrefslogtreecommitdiffstats
path: root/src/expr
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-29 20:07:03 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-29 20:07:03 +0200
commitfbb4d955b12c87e2143994f26477be9b73a6f1d7 (patch)
tree663f8ed182b3ab4925d262019437536e6b187de6 /src/expr
parent42365e5fec55bfff5020aea60fbb6f240b44a972 (diff)
expr: dup: fix missing space in text output
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/dup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/dup.c b/src/expr/dup.c
index 6498972..d0fa35f 100644
--- a/src/expr/dup.c
+++ b/src/expr/dup.c
@@ -176,12 +176,12 @@ static int nftnl_expr_dup_snprintf_default(char *buf, size_t len,
struct nftnl_expr_dup *dup = nftnl_expr_data(e);
if (e->flags & (1 << NFTNL_EXPR_DUP_SREG_ADDR)) {
- ret = snprintf(buf + offset, len, "sreg_addr %u", dup->sreg_addr);
+ ret = snprintf(buf + offset, len, "sreg_addr %u ", dup->sreg_addr);
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
}
if (e->flags & (1 << NFTNL_EXPR_DUP_SREG_DEV)) {
- ret = snprintf(buf + offset, len, "sreg_dev %u", dup->sreg_dev);
+ ret = snprintf(buf + offset, len, "sreg_dev %u ", dup->sreg_dev);
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
}