From 7487eea1b802bf0f45afcef5807251049b034dd8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 1 Oct 2024 12:10:02 -0700 Subject: More bug fixes --- src/stable/myriad.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/stable/myriad.cpp') diff --git a/src/stable/myriad.cpp b/src/stable/myriad.cpp index 03cffa9..5e511fd 100644 --- a/src/stable/myriad.cpp +++ b/src/stable/myriad.cpp @@ -768,9 +768,7 @@ int32_t Bu::Myriad::Stream::read( int32_t iStart, void *pTarget, if( iStart+iSize >= this->iSize ) { - int32_t iDiff = (iStart+iSize)-this->iSize; - iSize -= iDiff; - iStart += iDiff; + iSize = this->iSize-iStart; } while( iSize > 0 ) -- cgit v1.2.3