aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2024-10-01 12:10:02 -0700
committerMike Buland <mike@xagasoft.com>2024-10-01 12:10:02 -0700
commit7487eea1b802bf0f45afcef5807251049b034dd8 (patch)
treec00f87c3a982f8b43fd9e16444eb2df8e0079710 /src/stable
parent03cafb600101c4bc659521b833a1f3a8c56938be (diff)
downloadlibbu++-7487eea1b802bf0f45afcef5807251049b034dd8.tar.gz
libbu++-7487eea1b802bf0f45afcef5807251049b034dd8.tar.bz2
libbu++-7487eea1b802bf0f45afcef5807251049b034dd8.tar.xz
libbu++-7487eea1b802bf0f45afcef5807251049b034dd8.zip
More bug fixes
Diffstat (limited to '')
-rw-r--r--src/stable/myriad.cpp4
1 files changed, 1 insertions, 3 deletions
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,
768 768
769 if( iStart+iSize >= this->iSize ) 769 if( iStart+iSize >= this->iSize )
770 { 770 {
771 int32_t iDiff = (iStart+iSize)-this->iSize; 771 iSize = this->iSize-iStart;
772 iSize -= iDiff;
773 iStart += iDiff;
774 } 772 }
775 773
776 while( iSize > 0 ) 774 while( iSize > 0 )