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:
committed by
Gerald (Jerry) Carter
parent
707e3726d3
commit
56fd21c806
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user