projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
975dfb4
)
casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
author
arg@suckless.org
<unknown>
Mon, 24 Sep 2007 13:04:31 +0000
(15:04 +0200)
committer
arg@suckless.org
<unknown>
Mon, 24 Sep 2007 13:04:31 +0000
(15:04 +0200)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index dea227e6d97775e41c19074d6d2a874a2544d92d..b28a5486d42310ffd66c93f8b5d57c3eb1d8c424 100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-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;
}