details: http://hg.nginx.org/njs/rev/c0e8bd4964be branches: changeset: 397:c0e8bd4964be user: Dmitry Volyntsev <xei...@nginx.com> date: Tue Aug 15 21:19:13 2017 +0300 description: Fixed processing files from stdin.
diffstat: njs/njs.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines): diff -r f47b1eed6ed8 -r c0e8bd4964be njs/njs.c --- a/njs/njs.c Tue Aug 08 18:06:53 2017 +0300 +++ b/njs/njs.c Tue Aug 15 21:19:13 2017 +0300 @@ -263,8 +263,8 @@ njs_process_file(njs_opts_t *opts, njs_v return NXT_ERROR; } - p = script.start; - end = p + size; + p = script.start + script.length; + end = script.start + size; } memcpy(p, buf, n); _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel