openbsd-ports/x11/mplayer/patches/patch-command_c

13 lines
433 B
Plaintext
Raw Normal View History

$OpenBSD: patch-command_c,v 1.2 2010/05/26 21:29:56 jakemsr Exp $
--- command.c.orig Sat Jan 30 23:24:23 2010
+++ command.c Mon Mar 8 14:28:42 2010
@@ -3167,7 +3167,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
case MP_CMD_RUN:
#ifndef __MINGW32__
if (!fork()) {
- execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, NULL);
+ execl("/bin/sh", "sh", "-c", cmd->args[0].v.s, (char *)NULL);
exit(0);
}
#endif