summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/loadkmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c
index 6dcf813..f525ee5 100644
--- a/console-tools/loadkmap.c
+++ b/console-tools/loadkmap.c
@@ -57,7 +57,7 @@ int loadkmap_main(int argc UNUSED_PARAM, char **argv)
*/
xread(STDIN_FILENO, flags, 7);
- if (strncmp(flags, BINARY_KEYMAP_MAGIC, 7))
+ if (!is_prefixed_with(flags, BINARY_KEYMAP_MAGIC))
bb_error_msg_and_die("not a valid binary keymap");
xread(STDIN_FILENO, flags, MAX_NR_KEYMAPS);