]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fix crash in client when no buffer is loaded
authord18c7db <d18c7db@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 28 Jul 2009 01:21:24 +0000 (01:21 +0000)
committerd18c7db <d18c7db@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 28 Jul 2009 01:21:24 +0000 (01:21 +0000)
winsrc/command.cpp

index 5af6c709c61aff22383b470838c4c806d3580681..44e0326b41c0d2b7cf2a221b9f7e2ee0d5504083 100644 (file)
@@ -331,7 +331,7 @@ static void CmdEM4x50read(char *str)
 \r
        /* skip over the remainder of the LW */\r
        skip += tmpbuff[i+1]+tmpbuff[i+2];\r
-       while(GraphBuffer[skip] > low)\r
+       while(skip < MAX_GRAPH_TRACE_LEN && GraphBuffer[skip] > low)\r
                ++skip;\r
        skip += 8;\r
 \r
Impressum, Datenschutz