about summary refs log tree commit diff
path: root/search.c
diff options
context:
space:
mode:
authorokan <okan>2017-09-06 14:15:13 +0000
committerokan <okan>2017-09-06 14:15:13 +0000
commit7d7e2563962c338daeb61f24573fc0a64a958121 (patch)
treef16780bb417de4995ee9bf559078a8c000ae4084 /search.c
parent8dee1182a2a65a0286c68310f6f5181560f6275a (diff)
downloadcwm-7d7e2563962c338daeb61f24573fc0a64a958121.tar.gz
cwm-7d7e2563962c338daeb61f24573fc0a64a958121.tar.xz
cwm-7d7e2563962c338daeb61f24573fc0a64a958121.zip
Case matters for menu matching on executables; from ben@lloyd.im.
Diffstat (limited to 'search.c')
-rw-r--r--search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.c b/search.c
index 2f8897d..897623d 100644
--- a/search.c
+++ b/search.c
@@ -201,7 +201,7 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
 		    fnmatch(search, mi->text, 0) == FNM_NOMATCH)
 			continue;
 		TAILQ_FOREACH(mj, resultq, resultentry) {
-			r = strcasecmp(mi->text, mj->text);
+			r = strcmp(mi->text, mj->text);
 			if (r < 0)
 				TAILQ_INSERT_BEFORE(mj, mi, resultentry);
 			if (r <= 0)