tcasting char to int when using tolower (thanks to Jukkas careful cosmetic checking!) - dmenu - Dmenu fork with xft fonts.
(HTM) git clone git://r-36.net/dmenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 72a8eb412f48edb6c3b113d2582722d1bc7c68ce
(DIR) parent 975dfb41634f8f262def2549419cffb809e6f54f
(HTM) Author: arg@suckless.org <unknown>
Date: Mon, 24 Sep 2007 15:04:31 +0200
casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
Diffstat:
dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/dmenu.c b/dmenu.c
t@@ -624,7 +624,7 @@ setup(Bool bottom) {
int
strcaseido(const char *text, const char *pattern) {
for(; *text && *pattern; text++)
- if (tolower(*text) == tolower(*pattern))
+ if(tolower((int)*text) == tolower((int)*pattern))
pattern++;
return !*pattern;
}