From: Dmitry Volyntsev Date: Tue, 15 Aug 2017 18:19:13 +0000 (+0300) Subject: Fixed processing files from stdin. X-Git-Tag: 0.1.13~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=82b0e5052abd84f65325a045be262bb35bedf633;p=njs.git Fixed processing files from stdin. --- 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);