util_delete_path(): use util_strscpy()

This commit is contained in:
Florian Zumbiehl 2009-08-29 16:17:54 +02:00 committed by Kay Sievers
parent 39087d3bdd
commit f46b9c2628

View 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;