summaryrefslogtreecommitdiff
path: root/udev_remove.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-05 06:50:09 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:48:48 -0700
commit03fd7a3ad3438c7ae4525215ac58c3d94133cc35 (patch)
tree3dd0b83ee14b02b58027601ae1668b2821555929 /udev_remove.c
parent51015808dae77026ef6aae369be272289547fe72 (diff)
[PATCH] replace weird defines by real code
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);
}
}