diff options
author | Roman Kononov <kononov195-lbl@yahoo.com> | 2007-02-03 10:43:48 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2007-02-03 10:43:48 +0000 |
commit | de7f81f48a35cf09eb661e3da3a92b35d3c61aee (patch) | |
tree | 004c347155dbd751609cf3409b4eac6140c79376 /src | |
parent | 958a1f308a272cb0fcb0e280e2815893a86df457 (diff) |
This eliminates an illegal and annoying warning.
'rom' is the current read pointer.
'rom_end' points to last valid byte of the stream.
Signed-off-by: Roman Kononov <kononov195-lbl@yahoo.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2547 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-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; |