From e18e76084670b093ed7d1fc18c31f1ae0fa43a87 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 1 Jan 2014 10:36:54 +0200 Subject: [PATCH] keysym: fix search for lexicographically larger strings Probably a copy/paste error from a few lines above. Signed-off-by: Ran Benita --- src/keysym.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keysym.c b/src/keysym.c index 33b6491..915aae1 100644 --- a/src/keysym.c +++ b/src/keysym.c @@ -134,7 +134,7 @@ find_sym(const struct name_keysym *entry, const char *name, bool icase) } last = name_to_keysym + len; - for (iter = entry + 1; iter < last; --iter) { + for (iter = entry + 1; iter < last; ++iter) { if (!icase && strcmp(iter->name, name) == 0) return iter; if (strcasecmp(iter->name, entry->name) != 0)