pinosaur
/
dmenu.git
/ commitdiff
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
dea227e
..
b28a548
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;
}