aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 68487a4..1906436 100644
--- a/conf.c
+++ b/conf.c
@@ -1439,9 +1439,9 @@ void conf(struct ctx *c, int argc, char **argv)
if (*c->pasta_ifn)
die("Multiple --ns-ifname options given");
- ret = snprintf(c->pasta_ifn, IFNAMSIZ - 1, "%s",
+ ret = snprintf(c->pasta_ifn, IFNAMSIZ, "%s",
optarg);
- if (ret <= 0 || ret >= IFNAMSIZ - 1)
+ if (ret <= 0 || ret >= IFNAMSIZ)
die("Invalid interface name: %s", optarg);
break;