diff --git a/test/test_ipc.c b/test/test_ipc.c index 4972f2b7..f5e9570b 100644 --- a/test/test_ipc.c +++ b/test/test_ipc.c @@ -285,7 +285,7 @@ void spawn_helper(uv_pipe_t* channel, TUV_ASSERT(r == 0); TUV_ASSERT(channel->ipc); - exepath_size = sizeof(exepath); + exepath_size = sizeof(exepath) - 1; r = uv_exepath(exepath, &exepath_size); TUV_ASSERT(r == 0);