From: Jilles Tjoelker Date: Wed, 14 Aug 2013 21:49:22 +0000 (+0200) Subject: Ensure consistent indexing into user_modes independent on signedness of char. X-Git-Url: https://jfr.im/git/solanum.git/commitdiff_plain/7ddd614cd3fff056ff037abda99e95d9edbf884e Ensure consistent indexing into user_modes independent on signedness of char. --- diff --git a/src/supported.c b/src/supported.c index 24c1e3ed..8133d548 100644 --- a/src/supported.c +++ b/src/supported.c @@ -230,7 +230,8 @@ isupport_umode(const void *ptr) const char *str; str = ptr; - return ConfigFileEntry.oper_only_umodes & user_modes[*str] ? NULL : str; + return ConfigFileEntry.oper_only_umodes & + user_modes[(unsigned char)*str] ? NULL : str; } static const char *