mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-07-25 13:24:08 +00:00
Correct byte array load issue: Ensure maximum number of bytes to read is set correctly.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -75,7 +75,7 @@ namespace EightBit
|
||||
{
|
||||
if (limit < 0)
|
||||
{
|
||||
limit = this.Size - readOffset;
|
||||
limit = Math.Min(from.Length, this.Size - readOffset);
|
||||
}
|
||||
|
||||
var extent = limit + writeOffset;
|
||||
|
Reference in New Issue
Block a user