summaryrefslogtreecommitdiff
path: root/libudev/libudev-util-private.c
diff options
context:
space:
mode:
authorFlorian Zumbiehl <florz@florz.de>2009-08-29 16:17:54 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-08-29 16:17:54 +0200
commitf46b9c2628a4d28381ab297e699d9a0530a9e945 (patch)
tree25300385eca9459b976a0a642ca8006b67bf9513 /libudev/libudev-util-private.c
parent39087d3bdd0b5195c2570a4f858b88a82d42a066 (diff)
util_delete_path(): use util_strscpy()
Diffstat (limited to 'libudev/libudev-util-private.c')
-rw-r--r--libudev/libudev-util-private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c
index cb8d2c8a2e..5b5ecb1f50 100644
--- a/libudev/libudev-util-private.c
+++ b/libudev/libudev-util-private.c
@@ -67,7 +67,7 @@ int util_delete_path(struct udev *udev, const char *path)
char *pos;
int retval;
- strcpy (p, path);
+ util_strscpy(p, sizeof(p), path);
pos = strrchr(p, '/');
if (pos == p || pos == NULL)
return 0;