From a338eeec7af520d12cfc828c2d9dced166881d4e Mon Sep 17 00:00:00 2001 From: Gavin Hayes Date: Sat, 2 Sep 2023 18:59:11 -0400 Subject: [PATCH] satisfy -Werror=discarded-qualifiers --- libc/calls/fexecve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/calls/fexecve.c b/libc/calls/fexecve.c index 8374fad1cfb..39317270370 100644 --- a/libc/calls/fexecve.c +++ b/libc/calls/fexecve.c @@ -102,7 +102,7 @@ static bool ape_to_elf_execve(void *ape, const size_t apesize) { if (child == -1) { return false; } else if (child == 0) { - __sys_execve(_PATH_BSHELL, (char *const[]){_PATH_BSHELL, tempfile, "--assimilate", NULL}, (char *const[]){NULL}); + __sys_execve(_PATH_BSHELL, (char *const[]){_PATH_BSHELL, (char*)tempfile, "--assimilate", NULL}, (char *const[]){NULL}); _weaken(exit)(1); } int wstatus;