aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2019-02-12 18:37:59 +0300
committerDmitry Volyntsev <xeioex@nginx.com>2019-02-12 18:37:59 +0300
commitb04d56e0151194e1f31e94531b2f4943960f3711 (patch)
tree2cdf12003d42430a82228f998b2bea0f1fceb8cb /nginx/ngx_http_js_module.c
parent113c228339fe7bc009edfb40a42b5fe1e078427f (diff)
downloadnjs-b04d56e0151194e1f31e94531b2f4943960f3711.tar.gz
njs-b04d56e0151194e1f31e94531b2f4943960f3711.zip
Replacing vsprintf with nxt_vsprintf in modules' exceptions API.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index 800a9893..7d43d50f 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -1751,8 +1751,7 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs,
}
if (method == n) {
- njs_vm_error(vm, "unknown method \"%.*s\"",
- (int) method_name.length, method_name.start);
+ njs_vm_error(vm, "unknown method \"%V\"", &method_name);
return NJS_ERROR;
}
}