From 08059c9f6193a18f34f770c6f6a128fb1b27089f Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 17 Feb 2012 15:57:41 +0000 Subject: [PATCH] Fixed gcc warnings on libconfig.c git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15591 54d463be-8e91-2dee-dedb-b68131a5f0ec --- 3rdparty/libconfig/libconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c index e64213c168..1e594fc2b3 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); }