Skip to content
Snippets Groups Projects
Commit af745d82 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix build

parent c482945b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment