]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
expr: numgen: add missing trailing whitespace
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Aug 2016 10:16:29 +0000 (12:16 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Aug 2016 10:17:07 +0000 (12:17 +0200)
Before patch:

  [ numgen reg 1 = inc(2)]

After patch:

  [ numgen reg 1 = inc(2) ]

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/expr/numgen.c

index 7be8270c5912fffb1ae2896ad1809b6c7631c69b..e8fa9a156a8607ba587d312a70119e830a27cbdc 100644 (file)
@@ -191,12 +191,12 @@ nftnl_expr_ng_snprintf_default(char *buf, size_t size,
 
        switch (ng->type) {
        case NFT_NG_INCREMENTAL:
-               ret = snprintf(buf, len, "reg %u = inc(%u)", ng->dreg,
+               ret = snprintf(buf, len, "reg %u = inc(%u) ", ng->dreg,
                               ng->until);
                SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
                break;
        case NFT_NG_RANDOM:
-               ret = snprintf(buf, len, "reg %u = random(%u)", ng->dreg,
+               ret = snprintf(buf, len, "reg %u = random(%u) ", ng->dreg,
                               ng->until);
                SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
                break;