commit | a7ed5d9c4c603e5da99de22707919ae5dd91a872 | [log] [tgz] |
---|---|---|
author | Craig Tiller <craig.tiller@gmail.com> | Fri Jan 23 11:30:16 2015 -0800 |
committer | Craig Tiller <craig.tiller@gmail.com> | Fri Jan 23 11:30:16 2015 -0800 |
tree | 4e6729d6538d1a0d03389fa60b86cf407ca56fad | |
parent | 87d427532dfc048740ee4bae4dde0cd61125e128 [diff] [blame] |
Remove use of sprintf
diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index 17b37d6..c273dd7 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c
@@ -1015,7 +1015,7 @@ 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));