diff options
Diffstat (limited to 'test/core/util/subprocess_posix.cc')
-rw-r--r-- | test/core/util/subprocess_posix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/util/subprocess_posix.cc b/test/core/util/subprocess_posix.cc index bb42ccbdeb..ab288d777f 100644 --- a/test/core/util/subprocess_posix.cc +++ b/test/core/util/subprocess_posix.cc @@ -52,7 +52,8 @@ gpr_subprocess* gpr_subprocess_create(int argc, const char** argv) { if (pid == -1) { return nullptr; } else if (pid == 0) { - exec_args = static_cast<char**>(gpr_malloc((static_cast<size_t>(argc) + 1) * sizeof(char*))); + exec_args = static_cast<char**>( + gpr_malloc((static_cast<size_t>(argc) + 1) * sizeof(char*))); memcpy(exec_args, argv, static_cast<size_t>(argc) * sizeof(char*)); exec_args[argc] = nullptr; execv(exec_args[0], exec_args); |