IFNAMSIZ includes terminating 0
commit87490d7fa9052ca1fe1b67ba01c46611f9925ded
authorEmmanuel Bretelle <chantra@debuntu.org>
Tue, 7 Sep 2010 18:22:36 +0000 (7 20:22 +0200)
committerHarald Welte <laforge@gnumonks.org>
Wed, 20 Oct 2010 09:04:51 +0000 (20 11:04 +0200)
tree63d4896ad6aac6d2592b91631c142f9540713e64
parent4e56c83be220d666a2821bfc4d88dbcc951d4f42
IFNAMSIZ includes terminating 0

http://www.delorie.com/gnu/docs/glibc/libc_308.html
thus reverting devname to IFNAMSIZ
and making sure (*tun)->devname[IFNAMSIZ-1] = 0;

Signed-off-by: Emmanuel Bretelle <chantra@debuntu.org>
lib/tun.c
lib/tun.h