casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
authorarg@suckless.org <unknown>
Mon, 24 Sep 2007 13:04:31 +0000 (15:04 +0200)
committerarg@suckless.org <unknown>
Mon, 24 Sep 2007 13:04:31 +0000 (15:04 +0200)
dmenu.c

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;
 }