From 1df13c41bc1a8a0ba895a82c3817f41c4f91a789 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Thu, 4 Aug 2022 15:57:19 -0400 Subject: [PATCH] Fix another error --- src/logkeys.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logkeys.cc b/src/logkeys.cc index 63c1a21..3a940c1 100644 --- a/src/logkeys.cc +++ b/src/logkeys.cc @@ -311,7 +311,7 @@ void export_keymap_to_file() char buffer[32]; int buflen = 0; unsigned int index; - for (unsigned int i = 0; i < sizeof(char_or_func); ++i) { + for (unsigned int i = 0; i < sizeof(char_or_func)-1; ++i) { buflen = 0; if (is_char_key(i)) { index = to_char_keys_index(i);