Skip to content

Commit

Permalink
Fix a mistake in the length of USEC_INITIALIZED when parsing property…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
gnuinos committed Oct 29, 2023
1 parent 7d10858 commit c794383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libudev/libudev-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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=")) {
Expand Down

0 comments on commit c794383

Please sign in to comment.