2011-03-29 16:04:41 -04:00
|
|
|
$OpenBSD: patch-mplayer_c,v 1.11 2011/03/29 20:04:41 edd Exp $
|
|
|
|
--- mplayer.c.orig Thu Mar 3 12:35:16 2011
|
|
|
|
+++ mplayer.c Thu Mar 3 13:23:39 2011
|
|
|
|
@@ -815,7 +815,7 @@ static void exit_sighandler(int x){
|
2010-11-08 16:25:44 -05:00
|
|
|
char spid[20];
|
|
|
|
snprintf(spid, sizeof(spid), "%i", getppid());
|
|
|
|
getch2_disable(); // allow terminal to work properly with gdb
|
|
|
|
- if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", NULL) == -1)
|
|
|
|
+ if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", (char *) NULL) == -1)
|
|
|
|
mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't start gdb\n");
|
|
|
|
} else if (gdb_pid < 0)
|
|
|
|
mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't fork\n");
|