diff options
-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); } |