diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-14 21:50:27 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-14 21:50:27 -0800 |
commit | 6181bbcdacf69f6ab997b89ca4b1943d753ab85d (patch) | |
tree | e0f33820d2379527dde8893d40dff5527483ad50 /test | |
parent | 633d9ad914d94db7adb945b190bf9166ec7e5f2f (diff) | |
parent | af745d824ebee17ef17e501eb2d169a6054c9dfc (diff) |
Merge pull request #4460 from ctiller/whoops
Fix build
Diffstat (limited to 'test')
-rw-r--r-- | test/core/httpcli/httpcli_test.c | 4 | ||||
-rw-r--r-- | test/core/httpcli/httpscli_test.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/core/httpcli/httpcli_test.c b/test/core/httpcli/httpcli_test.c index fc51cb0101..612388c61d 100644 --- a/test/core/httpcli/httpcli_test.c +++ b/test/core/httpcli/httpcli_test.c @@ -151,11 +151,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 { - root = strdup("."); + root = gpr_strdup("."); } gpr_asprintf(&args[0], "%s/../../test/core/httpcli/test_server.py", root); gpr_free(root); 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); |