diff options
author | 2015-01-23 15:04:53 -0800 | |
---|---|---|
committer | 2015-01-23 15:04:53 -0800 | |
commit | cf7bd708cffc35000923d164310095e04db25bdb (patch) | |
tree | ae4d7ed2eb5d8d69448032688d10d76c4b8fb745 /test/core/channel | |
parent | 37d4eb56f04de5516bffb6719865d206a84854f6 (diff) |
Remove use of sprintf
Diffstat (limited to 'test/core/channel')
-rw-r--r-- | test/core/channel/metadata_buffer_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/channel/metadata_buffer_test.c b/test/core/channel/metadata_buffer_test.c index b34758345a..d2bc30cc3c 100644 --- a/test/core/channel/metadata_buffer_test.c +++ b/test/core/channel/metadata_buffer_test.c @@ -43,7 +43,7 @@ /* construct a buffer with some prefix followed by an integer converted to a string */ static gpr_slice construct_buffer(size_t prefix_length, size_t index) { - gpr_slice buffer = gpr_slice_malloc(prefix_length + 32); + gpr_slice buffer = gpr_slice_malloc(prefix_length + GPR_LTOA_MIN_BUFSIZE); memset(GPR_SLICE_START_PTR(buffer), 'a', prefix_length); GPR_SLICE_SET_LENGTH( buffer, |