[njs] Fixed %*s length argument type in nxt_sprintf() fmt string.
Dmitry Volyntsev
xeioex at nginx.com
Wed Feb 20 18:05:16 UTC 2019
details: https://hg.nginx.org/njs/rev/5764fb29b4c0
branches:
changeset: 790:5764fb29b4c0
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Wed Feb 20 21:04:19 2019 +0300
description:
Fixed %*s length argument type in nxt_sprintf() fmt string.
diffstat:
njs/njs_regexp.c | 4 ++--
njs/njs_shell.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 46144bf0a378 -r 5764fb29b4c0 njs/njs_regexp.c
--- a/njs/njs_regexp.c Wed Feb 20 18:25:01 2019 +0300
+++ b/njs/njs_regexp.c Wed Feb 20 21:04:19 2019 +0300
@@ -377,11 +377,11 @@ njs_regexp_compile_trace_handler(nxt_tra
p = trace->handler(trace, td, start);
if (vm->parser != NULL) {
- njs_syntax_error(vm, "%*s in %uD", (int) (p - start), start,
+ njs_syntax_error(vm, "%*s in %uD", p - start, start,
vm->parser->lexer->line);
} else {
- njs_syntax_error(vm, "%*s", (int) (p - start), start);
+ njs_syntax_error(vm, "%*s", p - start, start);
}
return p;
diff -r 46144bf0a378 -r 5764fb29b4c0 njs/njs_shell.c
--- a/njs/njs_shell.c Wed Feb 20 18:25:01 2019 +0300
+++ b/njs/njs_shell.c Wed Feb 20 21:04:19 2019 +0300
@@ -784,7 +784,7 @@ next:
}
nxt_sprintf((u_char *) completion, (u_char *) completion + len,
- "%*s%V%Z", (int) (p - text), text, suffix);
+ "%*s%V%Z", p - text, text, suffix);
return completion;
}
More information about the nginx-devel
mailing list