Bug fix: interface name may not be null-terminated, don't assume it.
Bug fix: interface name may not be null-terminated, don't assume it.

Take proper code from the current ifconfig.
Thanks Guilherme!

nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome