diff options
author | arg@suckless.org <unknown> | 2007-09-24 15:04:31 +0200 |
---|---|---|
committer | arg@suckless.org <unknown> | 2007-09-24 15:04:31 +0200 |
commit | 72a8eb412f48edb6c3b113d2582722d1bc7c68ce (patch) | |
tree | ae8f20560d91516771239ba43b475d2a18829fcb | |
parent | 975dfb41634f8f262def2549419cffb809e6f54f (diff) |
casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -624,7 +624,7 @@ setup(Bool bottom) { | |||
624 | int | 624 | int |
625 | strcaseido(const char *text, const char *pattern) { | 625 | strcaseido(const char *text, const char *pattern) { |
626 | for(; *text && *pattern; text++) | 626 | for(; *text && *pattern; text++) |
627 | if (tolower(*text) == tolower(*pattern)) | 627 | if(tolower((int)*text) == tolower((int)*pattern)) |
628 | pattern++; | 628 | pattern++; |
629 | return !*pattern; | 629 | return !*pattern; |
630 | } | 630 | } |