mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-25 16:40:31 +07:00
Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate properties
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
ecd42de2c5
commit
3a19299202
@ -1089,7 +1089,7 @@ struct udev_list_entry *udev_device_add_property(struct udev_device *udev_device
|
||||
|
||||
struct udev_list_entry *udev_device_add_property_from_string(struct udev_device *udev_device, const char *property)
|
||||
{
|
||||
char name[UTIL_PATH_SIZE];
|
||||
char name[UTIL_LINE_SIZE];
|
||||
char *val;
|
||||
|
||||
util_strscpy(name, sizeof(name), property);
|
||||
|
Loading…
Reference in New Issue
Block a user