--- udev/udev-event.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/udev/udev-event.c b/udev/udev-event.c index 701c061..247c6f8 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -492,8 +492,7 @@ static int rename_netif(struct udev_event *event) } /* free our own name, another process may wait for us */ - util_strscpy(ifr.ifr_newname, IFNAMSIZ, udev_device_get_sysname(dev)); - util_strscpy(ifr.ifr_newname, IFNAMSIZ, "_rename"); + util_strscpyl(ifr.ifr_newname, IFNAMSIZ, udev_device_get_sysname(dev), "_rename"); err = ioctl(sk, SIOCSIFNAME, &ifr); if (err != 0) { err(event->udev, "error changing netif name %s to %s: %m\n", -- 1.6.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html