Skip to content

Commit cfe61b8

Browse files
mmomtchevtargos
authored andcommittedNov 3, 2020
http2: remove unsupported %.* specifier
The debug sprintf doesn't support %.* specifiers Fixes: #35688 PR-URL: #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>
1 parent 0c5e8ed commit cfe61b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node_http2.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ int Http2Session::OnNghttpError(nghttp2_session* handle,
11361136
// Unfortunately, this is currently the only way for us to know if
11371137
// the session errored because the peer is not an http2 peer.
11381138
Http2Session* session = static_cast<Http2Session*>(user_data);
1139-
Debug(session, "Error '%.*s'", len, message);
1139+
Debug(session, "Error '%s'", message);
11401140
if (strncmp(message, BAD_PEER_MESSAGE, len) == 0) {
11411141
Environment* env = session->env();
11421142
Isolate* isolate = env->isolate();

0 commit comments

Comments
 (0)