prevent format string exploit
This commit is contained in:
parent
7cdcebdf58
commit
fd64152df9
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ struct udev_device *udev_monitor_receive_device(struct udev_monitor *udev_monito
|
|||
return NULL;
|
||||
}
|
||||
|
||||
snprintf(file, sizeof(file), UDEV_MONITOR_DIR "/%s", data);
|
||||
snprintf(file, sizeof(file), "%s/%s", UDEV_MONITOR_DIR, data);
|
||||
udev_device = udev_device_new_from_file(udev_monitor->udev, file);
|
||||
|
||||
if (!udev_device) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue