aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-17 10:19:58 +0000
committerRoy Marples <roy@marples.name>2008-04-17 10:19:58 +0000
commitf0aacec02eb04f1843cc5c729fd5510c2342660c (patch)
tree6f2ed637801be469663811f92e0833714ff4eb22 /src/librc
parent57e1dd7389229718b170d5c6fe52b0b051729801 (diff)
Cast to unsigned char for ctype calls.
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc-depend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c
index 8f580cc2..0f21ce49 100644
--- a/src/librc/librc-depend.c
+++ b/src/librc/librc-depend.c
@@ -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)