From c02adcacc375e567edfb30f9e36bbe60c65d9b1b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 31 Jan 2014 14:33:34 +1000 Subject: Oops, left this bit out of the array null terminal removal. --- handlekeys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/handlekeys.c b/handlekeys.c index 4ce14f5..3340a39 100644 --- a/handlekeys.c +++ b/handlekeys.c @@ -304,6 +304,7 @@ void handle_keys(long extra, int (*handle_sequence)(long extra, char *sequence), // For a real timeout checked Esc, buffer is now empty, so this for loop wont find it anyway. // While it's true we could avoid it by checking, the user already had to wait for a time out, and this loop wont take THAT long. for (j = 0; keys[j].code; j++) // Search for multibyte keys and control keys. + for (j = 0; j < (sizeof(keys) / sizeof(*keys)); j++) { if (strcmp(keys[j].code, buffer) == 0) { -- cgit v1.1