diff options
Diffstat (limited to 'usr.sbin/kbdmap/kbdmap.c')
-rw-r--r-- | usr.sbin/kbdmap/kbdmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.c b/usr.sbin/kbdmap/kbdmap.c index 6958f61..8d913d8 100644 --- a/usr.sbin/kbdmap/kbdmap.c +++ b/usr.sbin/kbdmap/kbdmap.c @@ -382,7 +382,7 @@ show_dialog(struct keymap **km_sorted, int num_keymaps) fp = fopen(tmp_name, "r"); if (fp) { char choice[64]; - if (fgets(choice, 64, fp) != NULL) { + if (fgets(choice, sizeof(choice), fp) != NULL) { /* Find key for desc */ for (i=0; i<num_keymaps; i++) { if (!strcmp(choice, km_sorted[i]->desc)) { |