Fixed the GDB reg write command from going out of bounds.

This commit is contained in:
skidau 2015-04-02 14:53:37 +00:00
parent d0cd600707
commit e47ac18e30
1 changed files with 1 additions and 1 deletions

View File

@ -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;