aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/httpcli/httpscli_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/httpcli/httpscli_test.c')
-rw-r--r--test/core/httpcli/httpscli_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/httpcli/httpscli_test.c b/test/core/httpcli/httpscli_test.c
index 4cfa9e59b0..ba5660bd18 100644
--- a/test/core/httpcli/httpscli_test.c
+++ b/test/core/httpcli/httpscli_test.c
@@ -153,11 +153,11 @@ int main(int argc, char **argv) {
/* figure out where we are */
char *root;
if (lslash) {
- root = gpr_malloc(lslash - me + 1);
+ root = gpr_malloc((size_t)(lslash - me + 1));
memcpy(root, me, (size_t)(lslash - me));
root[lslash - me] = 0;
} else {
- strcpy(root, ".");
+ root = gpr_strdup(".");
}
gpr_asprintf(&args[0], "%s/../../test/core/httpcli/test_server.py", root);
gpr_free(root);