From: hadaq Date: Tue, 17 Jul 2012 19:01:10 +0000 (+0000) Subject: update X-Git-Tag: v6.0~34 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=ef5a675e892d7c77bc2eca8e1dafcd775cbf8922;p=trbnettools.git update --- 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;