This eliminates an illegal and annoying warning.

'rom' is the current read pointer.
'rom_end' points to last valid byte of the stream.

Regards,

Signed-off-by: Roman Kononov <[EMAIL PROTECTED]>
---
Index: src/stream/rom_stream.c
===================================================================
--- src/stream/rom_stream.c	(revision 2539)
+++ src/stream/rom_stream.c	(working copy)
@@ -116,7 +116,7 @@ byte_offset_t stream_skip(byte_offset_t 
 {
 	byte_offset_t bytes;
 	bytes = count;
-	if ((rom + bytes) > rom_end) {
+	if (rom+bytes > rom_end+1) {
 		printk_warning("%6d:%s() - overflowed source buffer\n",
 			__LINE__, __FUNCTION__);
 		bytes = 0;
-- 
linuxbios mailing list
[email protected]
http://www.openbios.org/mailman/listinfo/linuxbios

Reply via email to