Patrick Uiterwijk
5547c12503
Fix format-truncation compile failure by typecasting USB IDs ( #8250 )
...
This patch adds safe_atoux16 for parsing an unsigned hexadecimal 16bit int, and
uses that for parsing USB device and vendor IDs.
This fixes a compile error with gcc-8 because while we know that USB IDs are 2 bytes,
the compiler does not know that.
../src/udev/udev-builtin-hwdb.c:80:38: error: '%04X' directive output may be
truncated writing between 4 and 8 bytes into a region of size between 2 and 6
[-Werror=format-truncation=]
Signed-off-by: Adam Williamson <awilliam@redhat.com >
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com >
2018-02-22 19:41:30 +01:00
..
2018-01-04 13:27:26 +01:00
2018-02-13 10:03:09 +01:00
2018-02-22 19:41:30 +01:00
2018-02-20 15:39:31 +01:00
2018-01-12 16:20:36 +01:00
2018-01-17 11:17:38 +01:00
2018-02-12 11:07:55 +01:00
2018-02-22 14:52:48 +01:00
2018-02-22 00:35:00 +01:00
2018-01-24 18:22:56 +01:00
2018-01-24 18:22:56 +01:00
2018-02-22 00:35:00 +01:00
2018-02-14 00:11:16 +01:00
2018-01-04 13:27:27 +01:00
2018-01-24 18:22:56 +01:00
2018-01-22 09:58:29 +09:00
2018-01-24 18:22:56 +01:00
2018-01-24 18:22:56 +01:00
2018-01-24 18:22:56 +01:00
2018-02-16 13:01:12 +01:00
2018-02-20 15:39:31 +01:00
2018-01-11 14:44:31 +01:00
2018-02-20 22:36:01 +01:00
2018-01-28 15:29:10 +01:00
2018-02-20 15:39:31 +01:00
2018-02-22 18:09:33 +01:00
2018-02-09 17:08:23 +01:00
2018-02-16 13:01:12 +01:00
2018-02-22 14:21:30 +01:00
2018-02-18 19:56:50 +01:00
2018-01-12 16:20:36 +01:00
2018-02-08 10:34:52 +01:00
2018-01-11 15:12:16 +01:00
2018-02-21 09:06:55 +09:00
2018-02-06 17:08:42 +09:00
2018-01-23 09:53:31 +09:00
2018-02-05 15:21:07 +01:00
2018-01-11 14:44:31 +01:00
2018-01-04 13:27:27 +01:00
2018-01-24 18:22:56 +01:00
2018-01-04 13:27:26 +01:00
2018-02-16 13:01:12 +01:00
2018-01-05 13:58:32 +01:00
2018-02-21 16:43:36 +01:00
2018-01-04 13:27:27 +01:00
2018-02-12 11:07:55 +01:00
2018-01-24 18:22:56 +01:00
2018-02-22 10:46:26 +01:00
2018-01-24 17:57:27 +01:00
2018-02-05 15:04:52 +01:00
2018-01-24 18:22:56 +01:00
2018-02-22 19:41:30 +01:00
2018-02-16 13:01:12 +01:00
2018-02-08 10:34:52 +01:00
2018-02-14 13:52:17 +01:00
2018-02-14 14:30:30 +01:00
2018-02-22 19:41:30 +01:00
2018-02-22 14:21:30 +01:00
2018-01-04 13:27:27 +01:00
2018-01-24 18:22:56 +01:00