Use os_strlcpy instead of os_strncpy when copying ifname