diff options
author | David Walter Seikel | 2014-01-31 14:33:34 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-01-31 14:33:34 +1000 |
commit | c02adcacc375e567edfb30f9e36bbe60c65d9b1b (patch) | |
tree | 408e6075d1e68fd892008672ee12a4e1cfbad679 | |
parent | Move CSI variable declarations to where they are used. (diff) | |
download | opensim-SC-c02adcacc375e567edfb30f9e36bbe60c65d9b1b.zip opensim-SC-c02adcacc375e567edfb30f9e36bbe60c65d9b1b.tar.gz opensim-SC-c02adcacc375e567edfb30f9e36bbe60c65d9b1b.tar.bz2 opensim-SC-c02adcacc375e567edfb30f9e36bbe60c65d9b1b.tar.xz |
Oops, left this bit out of the array null terminal removal.
-rw-r--r-- | handlekeys.c | 1 |
1 files changed, 1 insertions, 0 deletions
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), | |||
304 | // For a real timeout checked Esc, buffer is now empty, so this for loop wont find it anyway. | 304 | // For a real timeout checked Esc, buffer is now empty, so this for loop wont find it anyway. |
305 | // 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. | 305 | // 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. |
306 | for (j = 0; keys[j].code; j++) // Search for multibyte keys and control keys. | 306 | for (j = 0; keys[j].code; j++) // Search for multibyte keys and control keys. |
307 | for (j = 0; j < (sizeof(keys) / sizeof(*keys)); j++) | ||
307 | { | 308 | { |
308 | if (strcmp(keys[j].code, buffer) == 0) | 309 | if (strcmp(keys[j].code, buffer) == 0) |
309 | { | 310 | { |