diff options
-rw-r--r-- | test/core/httpcli/parser_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/httpcli/parser_test.c b/test/core/httpcli/parser_test.c index f3f17e157f..a26ddd2821 100644 --- a/test/core/httpcli/parser_test.c +++ b/test/core/httpcli/parser_test.c @@ -160,7 +160,7 @@ int main(int argc, char **argv) { tmp1 = gpr_malloc(2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH); memset(tmp1, 'a', 2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH - 1); - tmp1[2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH] = 0; + tmp1[2 * GRPC_HTTPCLI_MAX_HEADER_LENGTH - 1] = 0; gpr_asprintf(&tmp2, "HTTP/1.0 200 OK\r\nxyz: %s\r\n\r\n", tmp1); test_fails(split_modes[i], tmp2); gpr_free(tmp1); |