diff options
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/ejs/smbcalls_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_string.c b/source4/scripting/ejs/smbcalls_string.c index 6597f3b27b..46369cdee7 100644 --- a/source4/scripting/ejs/smbcalls_string.c +++ b/source4/scripting/ejs/smbcalls_string.c @@ -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) { |