Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Archive/7z/7zIn.cpp')
-rwxr-xr-xCPP/7zip/Archive/7z/7zIn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/7zip/Archive/7z/7zIn.cpp b/CPP/7zip/Archive/7z/7zIn.cpp
index 4f867708..e04313be 100755
--- a/CPP/7zip/Archive/7z/7zIn.cpp
+++ b/CPP/7zip/Archive/7z/7zIn.cpp
@@ -188,7 +188,7 @@ UInt64 CInByte2::ReadUInt64()
void CInByte2::ReadString(UString &s)
{
const Byte *buf = _buffer + _pos;
- size_t rem = (_size - _pos) / 2;
+ size_t rem = (_size - _pos) / 2 * 2;
{
size_t i;
for (i = 0; i < rem; i += 2)