Fix signed vs unsigned char issues found by NetBSD.
This commit is contained in:
committed by
Duncan Overbruck
parent
18a2a2b0a7
commit
46b7057d91
@ -234,7 +234,7 @@ rcv_sh_substitute(rcv_t *rcv, const char *str, size_t len)
|
||||
cmd = NULL;
|
||||
continue;
|
||||
} else if (*p == '{') {
|
||||
for (ref = ++p; *p && p < str+len && (isalnum(*p) || *p == '_'); p++)
|
||||
for (ref = ++p; *p && p < str+len && (isalnum((unsigned char)*p) || *p == '_'); p++)
|
||||
;
|
||||
reflen = p-ref;
|
||||
switch (*p) {
|
||||
@ -253,7 +253,7 @@ rcv_sh_substitute(rcv_t *rcv, const char *str, size_t len)
|
||||
goto err1;
|
||||
}
|
||||
} else {
|
||||
for (ref = p; *p && p < str+len && (isalnum(*p) || *p == '_'); p++)
|
||||
for (ref = p; *p && p < str+len && (isalnum((unsigned char)*p) || *p == '_'); p++)
|
||||
;
|
||||
reflen = p-ref;
|
||||
p--;
|
||||
@ -349,7 +349,7 @@ rcv_get_pkgver(rcv_t *rcv)
|
||||
vlen--;
|
||||
}
|
||||
vlen--;
|
||||
while (isspace(v[vlen-1])) {
|
||||
while (isspace((unsigned char)v[vlen-1])) {
|
||||
vlen--;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user