diff options
author | Momtchil Momtchev <momtchil@momtchev.com> | 2020-10-17 20:38:35 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-10-24 17:26:50 +0300 |
commit | 70834250e83fa89e92314be37a9592978ee8c6bd (patch) | |
tree | a22e9a84f90b8bbe7c3c5461b9c97b9503555fb4 | |
parent | c5b9b5b28ff3804811b50df12459ff134887a82b (diff) |
http2: remove unsupported %.* specifier
The debug sprintf doesn't support %.* specifiers
Fixes: https://github.com/nodejs/node/issues/35688
PR-URL: https://github.com/nodejs/node/pull/35694
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
-rw-r--r-- | src/node_http2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc index 5b860a61119..b72e03e8571 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -1136,7 +1136,7 @@ int Http2Session::OnNghttpError(nghttp2_session* handle, // Unfortunately, this is currently the only way for us to know if // the session errored because the peer is not an http2 peer. Http2Session* session = static_cast<Http2Session*>(user_data); - Debug(session, "Error '%.*s'", len, message); + Debug(session, "Error '%s'", message); if (strncmp(message, BAD_PEER_MESSAGE, len) == 0) { Environment* env = session->env(); Isolate* isolate = env->isolate(); |