summaryrefslogtreecommitdiffstats
path: root/lib/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/print.c')
-rw-r--r--lib/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/print.c b/lib/print.c
index f04377f..662baae 100644
--- a/lib/print.c
+++ b/lib/print.c
@@ -501,7 +501,7 @@ ipset_print_iface(char *buf, unsigned int len,
}
name = ipset_data_get(data, opt);
assert(name);
- size = snprintf(buf, len, "%s", name);
+ size = snprintf(buf + offset, len, "%s", name);
SNPRINTF_FAILURE(size, len, offset);
return offset;
}