Accept default length for md above 64 kiB boundary
Only truncate when a read without a length would cross from low to high memory.
This commit is contained in:
parent
f230af2ce9
commit
27f56783ef
|
@ -75,7 +75,7 @@ int cmd_md(char **arg)
|
|||
len_text);
|
||||
return -1;
|
||||
}
|
||||
} else if (offset + length > 0x10000) {
|
||||
} else if (offset < 0x10000 && offset + length > 0x10000) {
|
||||
length = 0x10000 - offset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue