From f81c82c342ce9d6131582039d22533ba1802dbfc Mon Sep 17 00:00:00 2001 From: d18c7db Date: Tue, 28 Jul 2009 01:21:24 +0000 Subject: [PATCH] fix crash in client when no buffer is loaded --- winsrc/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsrc/command.cpp b/winsrc/command.cpp index 5af6c709..44e0326b 100644 --- a/winsrc/command.cpp +++ b/winsrc/command.cpp @@ -331,7 +331,7 @@ static void CmdEM4x50read(char *str) /* skip over the remainder of the LW */ skip += tmpbuff[i+1]+tmpbuff[i+2]; - while(GraphBuffer[skip] > low) + while(skip < MAX_GRAPH_TRACE_LEN && GraphBuffer[skip] > low) ++skip; skip += 8; -- 2.39.2