ext/libuv/test/runner-unix.c in uvrb-0.1.4 vs ext/libuv/test/runner-unix.c in uvrb-0.2.0

- old
+ new

@@ -47,10 +47,10 @@ tap_output = (tap != NULL && atoi(tap) > 0); /* 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); } /* Invoke "argv[0] test-name [test-part]". Store process info in *p. */