pull/4460/head
Craig Tiller 9 years ago
parent c482945ba7
commit af745d824e
  1. 4
      test/core/httpcli/httpcli_test.c
  2. 4
      test/core/httpcli/httpscli_test.c

@ -151,11 +151,11 @@ int main(int argc, char **argv) {
/* figure out where we are */ /* figure out where we are */
char *root; char *root;
if (lslash) { if (lslash) {
root = gpr_malloc(lslash - me + 1); root = gpr_malloc((size_t)(lslash - me + 1));
memcpy(root, me, (size_t)(lslash - me)); memcpy(root, me, (size_t)(lslash - me));
root[lslash - me] = 0; root[lslash - me] = 0;
} else { } else {
root = strdup("."); root = gpr_strdup(".");
} }
gpr_asprintf(&args[0], "%s/../../test/core/httpcli/test_server.py", root); gpr_asprintf(&args[0], "%s/../../test/core/httpcli/test_server.py", root);
gpr_free(root); gpr_free(root);

@ -153,11 +153,11 @@ int main(int argc, char **argv) {
/* figure out where we are */ /* figure out where we are */
char *root; char *root;
if (lslash) { if (lslash) {
root = gpr_malloc(lslash - me + 1); root = gpr_malloc((size_t)(lslash - me + 1));
memcpy(root, me, (size_t)(lslash - me)); memcpy(root, me, (size_t)(lslash - me));
root[lslash - me] = 0; root[lslash - me] = 0;
} else { } else {
strcpy(root, "."); root = gpr_strdup(".");
} }
gpr_asprintf(&args[0], "%s/../../test/core/httpcli/test_server.py", root); gpr_asprintf(&args[0], "%s/../../test/core/httpcli/test_server.py", root);
gpr_free(root); gpr_free(root);

Loading…
Cancel
Save