diff options
-rw-r--r-- | 3rdparty/libconfig/libconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c index e64213c16..1e594fc2b 100644 --- a/3rdparty/libconfig/libconfig.c +++ b/3rdparty/libconfig/libconfig.c @@ -533,12 +533,12 @@ static int __config_validate_name(const char *name) if(*p == '\0') return(CONFIG_FALSE); - if(! isalpha(*p) && (*p != '*')) + if(! isalpha((unsigned char)*p) && (*p != '*')) return(CONFIG_FALSE); for(++p; *p; ++p) { - if(! (isalpha(*p) || isdigit(*p) || strchr("*_-", (int)*p))) + if(! (isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || strchr("*_-", (int)*p))) return(CONFIG_FALSE); } |