aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarg@suckless.org <unknown>2007-09-24 15:04:31 +0200
committerarg@suckless.org <unknown>2007-09-24 15:04:31 +0200
commit72a8eb412f48edb6c3b113d2582722d1bc7c68ce (patch)
treeae8f20560d91516771239ba43b475d2a18829fcb
parent975dfb41634f8f262def2549419cffb809e6f54f (diff)
downloaddmenu-72a8eb412f48edb6c3b113d2582722d1bc7c68ce.tar.gz
dmenu-72a8eb412f48edb6c3b113d2582722d1bc7c68ce.tar.bz2
dmenu-72a8eb412f48edb6c3b113d2582722d1bc7c68ce.zip
casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index dea227e..b28a548 100644
--- 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;
}