Fixed gcc warnings on libconfig.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15591 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
5332a0c0b7
commit
08059c9f61
4
3rdparty/libconfig/libconfig.c
vendored
4
3rdparty/libconfig/libconfig.c
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user