Welcome! Log In Create A New Profile

Advanced

[njs] Fixed processing files from stdin.

Dmitry Volyntsev
August 15, 2017 02:32PM
details: http://hg.nginx.org/njs/rev/c0e8bd4964be
branches:
changeset: 397:c0e8bd4964be
user: Dmitry Volyntsev <xeioex@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
Subject Author Views Posted

[njs] Fixed processing files from stdin.

Dmitry Volyntsev 667 August 15, 2017 02:32PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready