Skip to content

Commit cfe61b8

Browse files
mmomtchevtargos
authored andcommitted
http2: remove unsupported %.* specifier
The debug sprintf doesn't support %.* specifiers Fixes: #35688 PR-URL: #35694 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ricky Zhou <[email protected]> Reviewed-By: David Carlier <[email protected]>
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)