openbsd-ports/x11/mplayer/patches/patch-unrar_exec_c
edd 666f370183 Update to mplayer-20101024. Noteworthy improvements include vpx
(webm) support and alpha support. This work is a joint effort from
myself, naddy@ and jakemsr@. Cheers.

OK jakemsr@
2010-11-08 21:25:44 +00:00

17 lines
811 B
Plaintext

$OpenBSD: patch-unrar_exec_c,v 1.1 2010/11/08 21:25:44 edd Exp $
--- unrar_exec.c.orig Sun Oct 24 11:15:56 2010
+++ unrar_exec.c Sun Oct 24 11:16:11 2010
@@ -66,10 +66,10 @@ static FILE* launch_pipe(pid_t *apid, const char *exec
|| open("/dev/null", O_WRONLY) != 2)
_exit(EXIT_FAILURE);
if (action == UNRAR_LIST)
- execl(executable, executable, "v", archive, NULL);
+ execl(executable, executable, "v", archive, (char *) NULL);
else if (action == UNRAR_EXTRACT)
execl(executable, executable, "p", "-inul", "-p-",
- archive,filename,NULL);
+ archive,filename, (char *) NULL);
mp_msg(MSGT_GLOBAL, MSGL_ERR, "UnRAR: Cannot execute %s\n", executable);
_exit(EXIT_FAILURE);
}