Skip to content

Commit

Permalink
Merge pull request #269 from bbonev/my-patch-1
Browse files Browse the repository at this point in the history
Fix a mistake in the length of USEC_INITIALIZED when parsing property…
  • Loading branch information
bbonev authored Oct 29, 2023
2 parents 7d10858 + c794383 commit ddfdf86
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 ddfdf86

Please sign in to comment.