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:
Peter A. Bigot 2011-10-11 14:16:28 -05:00 committed by Daniel Beer
parent f230af2ce9
commit 27f56783ef
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ int cmd_md(char **arg)
len_text); len_text);
return -1; return -1;
} }
} else if (offset + length > 0x10000) { } else if (offset < 0x10000 && offset + length > 0x10000) {
length = 0x10000 - offset; length = 0x10000 - offset;
} }