Fixed the GDB reg write command from going out of bounds.
This commit is contained in:
parent
d0cd600707
commit
e47ac18e30
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue