From 8b433a2d1d9c2eb7d76e453cd3f0322adfce1f24 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 23 Jan 2015 14:47:07 -0800 Subject: Use symbolic constant --- src/core/channel/client_channel.c | 2 +- src/core/surface/call.c | 2 +- src/core/transport/chttp2_transport.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3