diff options
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/rom_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/rom_stream.c b/src/stream/rom_stream.c index 9be265e8af..1b4d0e047a 100644 --- a/src/stream/rom_stream.c +++ b/src/stream/rom_stream.c @@ -116,7 +116,7 @@ byte_offset_t stream_skip(byte_offset_t count) { byte_offset_t bytes; bytes = count; - if ((rom + bytes) > rom_end) { + if ((rom + bytes - 1) > rom_end) { printk_warning("%6d:%s() - overflowed source buffer\n", __LINE__, __FUNCTION__); bytes = 0; |