From 82b0e5052abd84f65325a045be262bb35bedf633 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 15 Aug 2017 21:19:13 +0300 Subject: [PATCH] Fixed processing files from stdin. --- njs/njs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/njs/njs.c b/njs/njs.c index 4ff329fb..719d027e 100644 --- a/njs/njs.c +++ b/njs/njs.c @@ -263,8 +263,8 @@ njs_process_file(njs_opts_t *opts, njs_vm_opt_t *vm_options) return NXT_ERROR; } - p = script.start; - end = p + size; + p = script.start + script.length; + end = script.start + size; } memcpy(p, buf, n); -- 2.47.3