Merge pull request #269 from bbonev/my-patch-1

Fix a mistake in the length of USEC_INITIALIZED when parsing property…
This commit is contained in:
Boian Bonev 2023-10-30 01:30:10 +02:00 committed by GitHub
commit ddfdf863d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -533,7 +533,7 @@ static void udev_device_add_property_from_string_parse(struct udev_device *udev_
}
}
} 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=")) {
udev_device_set_driver(udev_device, &property[7]);
} else if (startswith(property, "ACTION=")) {