changeset: 224:8c54ba67464e
tag: tip
user: arg_AT_suckless.org
date: Mon Sep 24 15:04:31 2007 +0200
summary: casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
diff -r 6df624296ec6 -r 8c54ba67464e dmenu.c
--- a/dmenu.c Sun Sep 23 18:49:24 2007 +0200
+++ b/dmenu.c Mon Sep 24 15:04:31 2007 +0200
@@ -624,7 +624,7 @@ int
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;
}
Received on Mon Sep 24 2007 - 15:09:13 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:17 UTC