aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libconfig.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/libconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libconfig.c b/lib/libconfig.c
index f301c8c..edf7b8b 100644
--- a/lib/libconfig.c
+++ b/lib/libconfig.c
@@ -534,12 +534,12 @@ static int __config_validate_name(const char *name)
if(*p == '\0')
return(CONFIG_FALSE);
- if(! isalpha(*p) && (*p != '*'))
+ if(! isalpha((int)*p) && (*p != '*'))
return(CONFIG_FALSE);
for(++p; *p; ++p)
{
- if(! (isalpha(*p) || isdigit(*p) || strchr("*_-", (int)*p)))
+ if(! (isalpha((int)*p) || isdigit((int)*p) || strchr("*_-", (int)*p)))
return(CONFIG_FALSE);
}