From f46b9c2628a4d28381ab297e699d9a0530a9e945 Mon Sep 17 00:00:00 2001 From: Florian Zumbiehl Date: Sat, 29 Aug 2009 16:17:54 +0200 Subject: [PATCH] util_delete_path(): use util_strscpy() --- libudev/libudev-util-private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libudev/libudev-util-private.c b/libudev/libudev-util-private.c index cb8d2c8a..5b5ecb1f 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; -- 2.39.5