aboutsummaryrefslogtreecommitdiffstats
path: root/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 723d5e3a..29d4c107 100644
--- a/interface.c
+++ b/interface.c
@@ -269,7 +269,7 @@ get_ifinfo(const char *ifname, ifinfo_t *ifinfo)
kvm_read(kvmfd, ifnet_addr, &ifnet, sizeof(ifnet));
kvm_read(kvmfd, (unsigned long) ifnet.if_name, tname, sizeof tname);
#ifdef HAVE_SNPRINTF
- snprintf(tname, sizeof tname - 1,
+ snprintf(tname, sizeof tname,
#else
sprintf(tname,
#endif