diff options
author | Florian Zumbiehl <florz@florz.de> | 2009-08-29 16:17:54 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-08-29 16:17:54 +0200 |
commit | f46b9c2628a4d28381ab297e699d9a0530a9e945 (patch) | |
tree | 25300385eca9459b976a0a642ca8006b67bf9513 | |
parent | 39087d3bdd0b5195c2570a4f858b88a82d42a066 (diff) |
util_delete_path(): use util_strscpy()
-rw-r--r-- | libudev/libudev-util-private.c | 2 |
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; |