summaryrefslogtreecommitdiff
path: root/src/KM_util.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2007-03-31 18:48:57 +0000
committerjhurst <>2007-03-31 18:48:57 +0000
commitb072ecf1205c9b00eb8cd8b9370917d52a99927d (patch)
treefa8c5297d97438ec5e6155969450e20b4604810b /src/KM_util.h
parentf6c05bf6bbe2efc6529bd4ba0b8c1907653d728d (diff)
bugfixes for release
Diffstat (limited to 'src/KM_util.h')
-rwxr-xr-xsrc/KM_util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/KM_util.h b/src/KM_util.h
index 5ca3baa..244fc45 100755
--- a/src/KM_util.h
+++ b/src/KM_util.h
@@ -446,9 +446,11 @@ namespace Kumu
inline virtual bool Unarchive(MemIOReader* Reader) {
assert(Reader);
- if ( ! Reader->ReadUi32BE(&m_Length) ) return false;
- if ( KM_FAILURE(Capacity(m_Length)) ) return false;
- if ( ! Reader->ReadRaw(m_Data, m_Length) ) return false;
+ ui32_t tmp_len;
+ if ( ! Reader->ReadUi32BE(&tmp_len) ) return false;
+ if ( KM_FAILURE(Capacity(tmp_len)) ) return false;
+ if ( ! Reader->ReadRaw(m_Data, tmp_len) ) return false;
+ m_Length = tmp_len;
return true;
}
};