diff options
Diffstat (limited to 'src/expr/hash.c')
-rw-r--r-- | src/expr/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/hash.c b/src/expr/hash.c index c235502..83f9317 100644 --- a/src/expr/hash.c +++ b/src/expr/hash.c @@ -220,7 +220,7 @@ nftnl_expr_hash_snprintf_default(char *buf, size_t size, SNPRINTF_BUFFER_SIZE(ret, size, len, offset); if (hash->offset) { - ret = snprintf(buf, len, "offset %u ", hash->offset); + ret = snprintf(buf + offset, len, "offset %u ", hash->offset); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); } |