mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
Fix a mistake in the length of USEC_INITIALIZED when parsing property string
This commit is contained in:
parent
7d1085839f
commit
c79438307b
@ -533,7 +533,7 @@ static void udev_device_add_property_from_string_parse(struct udev_device *udev_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (startswith(property, "USEC_INITIALIZED=")) {
|
} else if (startswith(property, "USEC_INITIALIZED=")) {
|
||||||
udev_device_set_usec_initialized(udev_device, strtoull(&property[19], NULL, 10));
|
udev_device_set_usec_initialized(udev_device, strtoull(&property[17], NULL, 10));
|
||||||
} else if (startswith(property, "DRIVER=")) {
|
} else if (startswith(property, "DRIVER=")) {
|
||||||
udev_device_set_driver(udev_device, &property[7]);
|
udev_device_set_driver(udev_device, &property[7]);
|
||||||
} else if (startswith(property, "ACTION=")) {
|
} else if (startswith(property, "ACTION=")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user