diff options
author | okan | 2017-09-06 14:15:13 +0000 |
---|---|---|
committer | okan | 2017-09-06 14:15:13 +0000 |
commit | e04212f686059843306cc4aee1f0be6ae87fa606 (patch) | |
tree | fa44953a951b8dde6111baa7bb1473a2da21de2e /search.c | |
parent | 14d1f41b806e1f603d5d975eceeb9b23845ec298 (diff) | |
download | cwm-e04212f686059843306cc4aee1f0be6ae87fa606.tar.gz |
Case matters for menu matching on executables; from ben@lloyd.im.
Diffstat (limited to '')
-rw-r--r-- | search.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <sys/types.h> @@ -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) |