diff options
Diffstat (limited to 'src/udev/udev-builtin-hwdb.c')
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c index aa996f375d..0db21641b1 100644 --- a/src/udev/udev-builtin-hwdb.c +++ b/src/udev/udev-builtin-hwdb.c @@ -40,7 +40,7 @@ static int get_id_attr( return -1; } - if (!strncmp(t, "0x", 2)) + if (startswith(t, "0x")) t += 2; if (sscanf(t, "%04x", &u) != 1 || u > 0xFFFFU) { |