From 43c14fc2e9eaa20ca9a122628ae8a429b90308a4 Mon Sep 17 00:00:00 2001 From: skidau Date: Thu, 2 Apr 2015 14:53:37 +0000 Subject: [PATCH] Fixed the GDB reg write command from going out of bounds. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1287 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gba/remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/remote.cpp b/src/gba/remote.cpp index 22ce8619..0d65b30c 100644 --- a/src/gba/remote.cpp +++ b/src/gba/remote.cpp @@ -3317,7 +3317,7 @@ void remoteWriteRegister(char *p) int i = 0; - while(c != '#') { + while(i < 4) { u8 b = 0; if(c <= '9') b = (c - '0') << 4;