chiark / gitweb /
[PATCH] Increase the name size as requested by Richard Gooch <rgooch@ras.ucalgary.ca>
[elogind.git] / udev-remove.c
index 195b9874111b2269e0746082984810bb32722ab1..d9097134504a6a1cd2857b83305d683162b43c82 100644 (file)
@@ -29,6 +29,7 @@
 #include <errno.h>
 
 #include "udev.h"
+#include "udev_lib.h"
 #include "udev_version.h"
 #include "udev_dbus.h"
 #include "logging.h"
@@ -103,7 +104,7 @@ static int delete_node(struct udevice *dev)
                delete_path(filename);
 
        foreach_strpart(dev->symlink, " ", pos, len) {
-               strnfieldcpy(linkname, pos, len+1);
+               strfieldcpymax(linkname, pos, len+1);
                strfieldcpy(filename, udev_root);
                strfieldcat(filename, linkname);