summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorPatrick Uiterwijk <patrick@puiterwijk.org>2018-02-22 19:41:30 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:59:04 +0200
commit21a9caccf84109b69525235e9546995350c513ee (patch)
treeede8c194d6d16eff13e537ab4ddbbee95eef970b /po
parentdbf16741660c69c70221b06d10335471d17dcc6c (diff)
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>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions