summaryrefslogtreecommitdiff
path: root/console-client/xkb
diff options
context:
space:
mode:
Diffstat (limited to 'console-client/xkb')
-rw-r--r--console-client/xkb/kstoucs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console-client/xkb/kstoucs.c b/console-client/xkb/kstoucs.c
index b4602e17..e93cc858 100644
--- a/console-client/xkb/kstoucs.c
+++ b/console-client/xkb/kstoucs.c
@@ -34,9 +34,9 @@ unsigned int doit (int keysym)
return 0; /* base case: empty search space. */
/* recursive cases: halve search space. */
else if (middle->keysym < keysym)
- return find_ucs (keysym, middle, last);
+ return find_ucs (keysym, middle+1, last);
else if (middle->keysym > keysym)
- return find_ucs (keysym, first, middle);
+ return find_ucs (keysym, first, middle-1);
}
#define NUM_KEYSYMS (sizeof kstoucs_map / sizeof(struct ksmap))