summaryrefslogtreecommitdiff
path: root/udev-remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev-remove.c')
-rw-r--r--udev-remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-remove.c b/udev-remove.c
index 195b987411..44ad603d4a 100644
--- a/udev-remove.c
+++ b/udev-remove.c
@@ -103,7 +103,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);