Fix an off-by-one which could mean writing beyond the end of the array when
commitd8544eff138e6f5a5118872c1d76f331e004435b
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 1 Jan 2007 01:42:23 +0000 (1 01:42 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 1 Jan 2007 01:42:23 +0000 (1 01:42 +0000)
tree6456756a6af86758b36877ac3b71edcb7ac28373
parent07e66cc8536c9f62820f7dfa346d380bbcf02690
Fix an off-by-one which could mean writing beyond the end of the array when
putting '\0' to the end of the iface name.

Obtained-From: FreeBSD(bz@freebsd.org) with modification
sbin/ifconfig/ifconfig.c