1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 04:51:52 +00:00

Simplify a needlessly complex use of snprintf

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25652 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-01-08 22:18:35 +00:00
parent 876b028289
commit afb944d4c0

View File

@ -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");