Remove use of sprintf

pull/190/head
Craig Tiller 10 years ago committed by Yang Gao
parent 8f3bda2ad2
commit 0e5b306a5f
  1. 2
      src/core/transport/chttp2_transport.c

@ -1015,7 +1015,7 @@ static void cancel_stream_inner(transport *t, stream *s, gpr_uint32 id,
s->cancelled = 1;
stream_list_join(t, s, CANCELLED);
sprintf(buffer, "%d", local_status);
gpr_ltoa(local_status, buffer);
grpc_sopb_add_metadata(
&s->parser.incoming_sopb,
grpc_mdelem_from_strings(t->metadata_context, "grpc-status", buffer));

Loading…
Cancel
Save