mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
util_delete_path(): use util_strscpy()
This commit is contained in:
parent
39087d3bdd
commit
f46b9c2628
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user