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:
shennetsind 2012-02-17 15:57:41 +00:00
parent 5332a0c0b7
commit 08059c9f61

View File

@ -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);
}