diff options
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -781,8 +781,7 @@ static void exit_sighandler(int x){ if (crash_debug) { int gdb_pid; char spid[20]; - snprintf(spid, 19, "%i", getpid()); - spid[19] = 0; + snprintf(spid, sizeof(spid), "%i", getpid()); mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forking...\n"); gdb_pid = fork(); mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forked...\n"); |