From 7ddd614cd3fff056ff037abda99e95d9edbf884e Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 14 Aug 2013 23:49:22 +0200 Subject: [PATCH] Ensure consistent indexing into user_modes independent on signedness of char. --- src/supported.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/supported.c b/src/supported.c index 24c1e3ed5..8133d548c 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 *