Ensure consistent indexing into user_modes independent on signedness of char.
This commit is contained in:
parent
f951460ae9
commit
7ddd614cd3
1 changed files with 2 additions and 1 deletions
|
@ -230,7 +230,8 @@ isupport_umode(const void *ptr)
|
||||||
const char *str;
|
const char *str;
|
||||||
|
|
||||||
str = ptr;
|
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 *
|
static const char *
|
||||||
|
|
Loading…
Reference in a new issue