aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tun.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tun.h')
-rw-r--r--lib/tun.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tun.h b/lib/tun.h
index 7972c53..714144a 100644
--- a/lib/tun.h
+++ b/lib/tun.h
@@ -45,7 +45,7 @@ struct tun_t {
struct in_addr netmask;
int addrs; /* Number of allocated IP addresses */
int routes; /* One if we allocated an automatic route */
- char devname[IFNAMSIZ];/* Name of the tun device */
+ char devname[IFNAMSIZ+1];/* Name of the tun device */
int (*cb_ind) (struct tun_t *tun, void *pack, unsigned len);
};