]> err.no Git - systemd/commitdiff
util_delete_path(): use util_strscpy()
authorFlorian Zumbiehl <florz@florz.de>
Sat, 29 Aug 2009 14:17:54 +0000 (16:17 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 29 Aug 2009 14:17:54 +0000 (16:17 +0200)
libudev/libudev-util-private.c

index cb8d2c8a2e9a081b4eb9ea71373ec3ffcc3f199d..5b5ecb1f503c788550b423e7722b6af223e4d6b6 100644 (file)
@@ -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;