Fix a bug in the -i code where an existing interface might not be located.
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Jul 2004 05:34:44 +0000 (05:34 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Jul 2004 05:34:44 +0000 (05:34 +0000)
commit2a50c53377281d0a78950ec4f2879f22af05ae65
treeb8030c447e79766583021f05a14bb614725dada5
parentf9b04e01eb432a41abb482a8e765df4e86912870
Fix a bug in the -i code where an existing interface might not be located.
sdl_data is not nul terminated, sdl_nlen must be checked and strncmp used
rather then strcmp.
bin/hostname/hostname.c