diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-11-17 17:04:05 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-11-17 17:04:05 +0000 |
commit | 2fc13f629ad1d5f991ac3679e9d399760ceef085 (patch) | |
tree | b267e6b0bacca43f0563a12d9b2a3efb51feaf61 /lib/libconfig.c | |
parent | c317fac1d7221e4a278c41490ff300f7802e9dcb (diff) | |
parent | f2499612c5594944d3e0891259859668d35c85b2 (diff) | |
download | libconfig-2fc13f629ad1d5f991ac3679e9d399760ceef085.tar.gz |
Merge tag 'upstream/1.4.9'
Upstream version 1.4.9
Conflicts:
debian/changelog
debian/control
libconfig.spec
Diffstat (limited to 'lib/libconfig.c')
-rw-r--r-- | lib/libconfig.c | 4 |
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); } |