Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set tun devname to IFNAMESIZ+1 to avoid warning
Relevant output from make: ../lib/tun.c: In function ‘tun_new’: ../lib/tun.c:688: warning: array subscript is above array bounds Caused by assignement: (*tun)->devname[IFNAMSIZ] = 0; while devname defined as: char devname[IFNAMSIZ]; Signed-off-by: Emmanuel Bretelle <[email protected]>
- Loading branch information