summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_remove.c')
-rw-r--r--udev_remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_remove.c b/udev_remove.c
index 756eef0476..7a6c032d01 100644
--- a/udev_remove.c
+++ b/udev_remove.c
@@ -103,8 +103,8 @@ static int delete_node(struct udevice *udev)
return -1;
}
for (i = 1; i <= num; i++) {
- strfieldcpy(partitionname, filename);
- strintcat(partitionname, i);
+ snprintf(partitionname, NAME_SIZE, "%s%d", filename, i);
+ partitionname[NAME_SIZE-1] = '\0';
unlink_secure(partitionname);
}
}