diff options
Diffstat (limited to 'deps/uv/test/runner-unix.c')
-rw-r--r-- | deps/uv/test/runner-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/uv/test/runner-unix.c b/deps/uv/test/runner-unix.c index b66df51b98..9afcd1e488 100644 --- a/deps/uv/test/runner-unix.c +++ b/deps/uv/test/runner-unix.c @@ -49,7 +49,7 @@ void platform_init(int argc, char **argv) { /* Disable stdio output buffering. */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); - strcpy(executable_path, argv[0]); + strncpy(executable_path, argv[0], sizeof(executable_path) - 1); signal(SIGPIPE, SIG_IGN); } |