1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00

r8394: Make sure the argument to ctype is*(3) macros are unsigned char as

required by ISO C99.
This commit is contained in:
Love Hörnquist Åstrand
2005-07-12 22:22:59 +00:00
committed by Gerald (Jerry) Carter
parent 707e3726d3
commit 56fd21c806
13 changed files with 36 additions and 33 deletions

View File

@@ -198,7 +198,7 @@ static int ejs_sprintf(MprVarHandle eid, int argc, struct MprVar **argv)
len_count = count_chars(fmt2, '*');
/* find the type string */
tstr = &fmt2[len];
while (tstr > fmt2 && isalpha(tstr[-1])) {
while (tstr > fmt2 && isalpha((unsigned char)tstr[-1])) {
tstr--;
}
if (strcmp(tstr, "%") == 0) {