From: Florian Zumbiehl Date: Sat, 29 Aug 2009 14:17:54 +0000 (+0200) Subject: util_delete_path(): use util_strscpy() X-Git-Tag: 174~809 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f46b9c2628a4d28381ab297e699d9a0530a9e945;p=systemd util_delete_path(): use util_strscpy() --- 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;