From 4bd3c2ca6f4ee789f9cde0c9eb8e228687f2dcac Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 18 Nov 2009 18:54:58 -0800 Subject: [PATCH] fix crash on engine crash --- backend.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.0.4