diff options
Diffstat (limited to 'console-tools/loadkmap.c')
-rw-r--r-- | console-tools/loadkmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 6dcf8133f..f525ee5d1 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -57,7 +57,7 @@ int loadkmap_main(int argc UNUSED_PARAM, char **argv) | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | xread(STDIN_FILENO, flags, 7); | 59 | xread(STDIN_FILENO, flags, 7); |
60 | if (strncmp(flags, BINARY_KEYMAP_MAGIC, 7)) | 60 | if (!is_prefixed_with(flags, BINARY_KEYMAP_MAGIC)) |
61 | bb_error_msg_and_die("not a valid binary keymap"); | 61 | bb_error_msg_and_die("not a valid binary keymap"); |
62 | 62 | ||
63 | xread(STDIN_FILENO, flags, MAX_NR_KEYMAPS); | 63 | xread(STDIN_FILENO, flags, MAX_NR_KEYMAPS); |