diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-01-23 11:27:42 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-01-23 11:27:42 -0800 |
commit | 87d427532dfc048740ee4bae4dde0cd61125e128 (patch) | |
tree | 1b691a932babfeea93dc22547d406bbe63d84210 | |
parent | 4113ce75b1748c2853cc1ee82fa0bfe7a5b524c3 (diff) |
Remove use of sprintf
-rw-r--r-- | src/core/channel/client_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c index fa75561c78..a1ca851b5f 100644 --- a/src/core/channel/client_channel.c +++ b/src/core/channel/client_channel.c @@ -425,7 +425,7 @@ static void init_channel_elem(grpc_channel_element *elem, chand->transport_setup_initiated = 0; chand->args = grpc_channel_args_copy(args); - sprintf(temp, "%d", GRPC_STATUS_CANCELLED); + gpr_ltoa(GRPC_STATUS_CANCELLED, temp); chand->cancel_status = grpc_mdelem_from_strings(metadata_context, "grpc-status", temp); } |