From b85335421877f7074923cc6f97ac0dc1b7461037 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 6 Sep 2017 14:15:13 +0000 Subject: [PATCH] Case matters for menu matching on executables; from ben@lloyd.im. --- app/cwm/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cwm/search.c b/app/cwm/search.c index a417c6c5e..a72393399 100644 --- a/app/cwm/search.c +++ b/app/cwm/search.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: search.c,v 1.62 2017/04/25 13:40:33 okan Exp $ + * $OpenBSD: search.c,v 1.63 2017/09/06 14:15:13 okan Exp $ */ #include @@ -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)