Ensure consistent indexing into user_modes independent on signedness of char.

This commit is contained in:
Jilles Tjoelker 2013-08-14 23:49:22 +02:00
parent f951460ae9
commit 7ddd614cd3

View file

@ -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 *