From ef5a675e892d7c77bc2eca8e1dafcd775cbf8922 Mon Sep 17 00:00:00 2001 From: hadaq Date: Tue, 17 Jul 2012 19:01:10 +0000 Subject: [PATCH] update --- libtrbnet/trbflash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index fd83809..ba4b11c 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -120,7 +120,7 @@ typedef struct { } FlashParam; static FlashParam flashParamRef; -static const char trbflash_version[] = "$Revision: 2.42 $"; +static const char trbflash_version[] = "$Revision: 2.43 $"; static uint32_t mdcFlashSelect = 1; @@ -662,7 +662,7 @@ static int readPage(uint16_t trb_address, uint32_t pageNumber, endPoint = 0; temp = trbBuffer; end = trbBuffer + status; - while (temp < trbBuffer + status) { + while (temp < end) { unsigned int len = (*temp >> 16) & 0xffff; unsigned int address = *temp & 0xffff; unsigned int c; -- 2.43.0