diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-01-23 14:47:07 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-01-23 14:47:07 -0800 |
commit | 8b433a2d1d9c2eb7d76e453cd3f0322adfce1f24 (patch) | |
tree | 0a500172e49899baa2d46608a56edef2c46607de /src/core | |
parent | 99e5bc2f4a95b6e80fb3f65a2425c35e2049f392 (diff) |
Use symbolic constant
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/channel/client_channel.c | 2 | ||||
-rw-r--r-- | src/core/surface/call.c | 2 | ||||
-rw-r--r-- | src/core/transport/chttp2_transport.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c index c315dd6c1e..f9b42db419 100644 --- a/src/core/channel/client_channel.c +++ b/src/core/channel/client_channel.c @@ -410,7 +410,7 @@ static void init_channel_elem(grpc_channel_element *elem, grpc_mdctx *metadata_context, int is_first, int is_last) { channel_data *chand = elem->channel_data; - char temp[16]; + char temp[GPR_LTOA_MIN_BUFSIZE]; GPR_ASSERT(!is_first); GPR_ASSERT(is_last); diff --git a/src/core/surface/call.c b/src/core/surface/call.c index a951009717..1d8315a4b6 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -760,7 +760,7 @@ grpc_call_error grpc_call_start_write_status(grpc_call *call, /* always send status */ { grpc_mdelem *md; - char buffer[32]; + char buffer[GPR_LTOA_MIN_BUFSIZE]; gpr_ltoa(status, buffer); md = grpc_mdelem_from_strings(call->metadata_context, "grpc-status", buffer); diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index 36358089ec..531a53b984 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c @@ -1002,7 +1002,7 @@ static void cancel_stream_inner(transport *t, stream *s, gpr_uint32 id, grpc_chttp2_error_code error_code, int send_rst) { int had_outgoing; - char buffer[32]; + char buffer[GPR_LTOA_MIN_BUFSIZE]; if (s) { /* clear out any unreported input & output: nobody cares anymore */ |