From: H.G. Muller Date: Thu, 19 Nov 2009 02:54:58 +0000 (-0800) Subject: fix crash on engine crash X-Git-Tag: v4.4.2.20091122~10 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4bd3c2ca6f4ee789f9cde0c9eb8e228687f2dcac;p=xboard.git fix crash on engine crash --- diff --git a/backend.c b/backend.c index 815f51d..342b6f8 100755 --- a/backend.c +++ b/backend.c @@ -12411,7 +12411,7 @@ SendToProgram(message, cps) } else { gameInfo.result = cps->twoMachinesColor[0]=='w' ? BlackWins : WhiteWins; } - gameInfo.resultDetails = buf; + gameInfo.resultDetails = StrSave(buf); } DisplayFatalError(buf, error, 1); } @@ -12442,7 +12442,7 @@ ReceiveFromProgram(isr, closure, message, count, error) } else { gameInfo.result = cps->twoMachinesColor[0]=='w' ? BlackWins : WhiteWins; } - gameInfo.resultDetails = buf; + gameInfo.resultDetails = StrSave(buf); } RemoveInputSource(cps->isr); DisplayFatalError(buf, 0, 1);