From be94309808efe32e5b9f815f6b61e1b65c4f25ab Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 4 Feb 2016 17:56:34 +0100 Subject: [PATCH] Use execv - seems to work --- frontend/drivers/platform_linux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/drivers/platform_linux.c b/frontend/drivers/platform_linux.c index e8b0e5cdb8..26988a7623 100644 --- a/frontend/drivers/platform_linux.c +++ b/frontend/drivers/platform_linux.c @@ -2144,10 +2144,9 @@ static bool frontend_linux_set_fork(enum frontend_fork fork_mode) static void frontend_linux_exec(const char *path, bool should_load_game) { char *newargv[] = { "/home/squarepusher/libretro-super/dist/unix-static/snes9x_next_libretro.elf", NULL }; - char *newenviron[] = { NULL }; - execve("/home/squarepusher/libretro-super/dist/unix-static/snes9x_next_libretro.elf", newargv, newenviron); - perror("execve"); + execv("/home/squarepusher/libretro-super/dist/unix-static/snes9x_next_libretro.elf", newargv); + perror("execv"); } static void frontend_linux_exitspawn(char *core_path, size_t core_path_size)