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

@ -847,7 +847,7 @@ bool rc_deptree_update(void)
nosys[0] = 'n';
nosys[1] = 'o';
for (i = 0; i < len; i++)
nosys[i + 2] = (char) tolower((int) sys[i]);
nosys[i + 2] = (char)tolower((unsigned char)sys[i]);
nosys[i + 2] = '\0';
STAILQ_FOREACH_SAFE(depinfo, deptree, entries, depinfo_np)