aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-23 14:47:32 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-23 14:47:32 -0800
commit6edf833b2e9f8142695a9b51da8ba4e3808613c8 (patch)
tree4861352c37c62ba013dd665c9dfc4b892a561c58 /src
parent96756e6f07177a226c214408fe6d4f1d8b0e07f2 (diff)
parent8b433a2d1d9c2eb7d76e453cd3f0322adfce1f24 (diff)
Merge branch 'kill-more-printf' into bprintf
Diffstat (limited to 'src')
-rw-r--r--src/core/channel/client_channel.c2
-rw-r--r--src/core/surface/call.c2
-rw-r--r--src/core/transport/chttp2_transport.c2
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 */