diff options
author | 2015-06-19 12:24:44 -0700 | |
---|---|---|
committer | 2015-06-19 12:43:31 -0700 | |
commit | 5e71d7aff16a95bf621c7c3451b3a295b1f9b0b3 (patch) | |
tree | 647a4fa434055a463958762ca0b80ca4d17b1f02 /src/core/support/subprocess_posix.c | |
parent | 61a25fbff7be2915c50db154895a984f240ef6c7 (diff) |
Silenced conversion warnings in src/core/support
Diffstat (limited to 'src/core/support/subprocess_posix.c')
-rw-r--r-- | src/core/support/subprocess_posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/support/subprocess_posix.c b/src/core/support/subprocess_posix.c index b4631fa0ed..171054e4da 100644 --- a/src/core/support/subprocess_posix.c +++ b/src/core/support/subprocess_posix.c @@ -66,8 +66,8 @@ gpr_subprocess *gpr_subprocess_create(int argc, const char **argv) { if (pid == -1) { return NULL; } else if (pid == 0) { - exec_args = gpr_malloc((argc + 1) * sizeof(char *)); - memcpy(exec_args, argv, argc * sizeof(char *)); + exec_args = gpr_malloc(((size_t)argc + 1) * sizeof(char *)); + memcpy(exec_args, argv, (size_t)argc * sizeof(char *)); exec_args[argc] = NULL; execv(exec_args[0], exec_args); /* if we reach here, an error has occurred */ |