diff --git a/src/cl65/spawn-unix.inc b/src/cl65/spawn-unix.inc index 093e35935..1784123ac 100644 --- a/src/cl65/spawn-unix.inc +++ b/src/cl65/spawn-unix.inc @@ -81,7 +81,7 @@ int spawnvp (int Mode attribute ((unused)), const char* File, const char* const } else if (pid == 0) { /* The son - exec the program */ - if (execvp (File, argv) < 0) { + if (execvp (File, (char* const *) argv) < 0) { Error ("Cannot exec `%s': %s", File, strerror (errno)); }