]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Tue, 17 Jul 2012 19:01:10 +0000 (19:01 +0000)
committerhadaq <hadaq>
Tue, 17 Jul 2012 19:01:10 +0000 (19:01 +0000)
libtrbnet/trbflash.c

index fd838092dc2938a0bb752d8aeebd3c78cd2052eb..ba4b11cb951fdba5aea0fb839a984e93be6a2bf1 100644 (file)
@@ -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;