From de7f81f48a35cf09eb661e3da3a92b35d3c61aee Mon Sep 17 00:00:00 2001 From: Roman Kononov Date: Sat, 3 Feb 2007 10:43:48 +0000 Subject: 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2547 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/stream/rom_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stream/rom_stream.c') 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; -- cgit v1.2.3