Cast to unsigned char for ctype calls.

This commit is contained in:
Roy Marples
2008-04-17 10:19:58 +00:00
parent 57e1dd7389
commit f0aacec02e
6 changed files with 8 additions and 8 deletions

View File

@ -93,8 +93,8 @@ char *rc_conf_value(const char *setting)
TAILQ_FOREACH(s, rc_conf, entries) {
p = s->value;
while (p && *p && *p != '=') {
if (isupper((int) *p))
*p = tolower((int) *p);
if (isupper((unsigned char)*p))
*p = tolower((unsigned char)*p);
p++;
}
}