diff options
Diffstat (limited to 'CPP/7zip/Archive/Cab/CabIn.cpp')
-rw-r--r-- | CPP/7zip/Archive/Cab/CabIn.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CPP/7zip/Archive/Cab/CabIn.cpp b/CPP/7zip/Archive/Cab/CabIn.cpp index c499f05f..a72e05f7 100644 --- a/CPP/7zip/Archive/Cab/CabIn.cpp +++ b/CPP/7zip/Archive/Cab/CabIn.cpp @@ -40,8 +40,7 @@ void CInArchive::ReadName(AString &s) throw CUnexpectedEndException(); if (b == 0) { - memcpy(s.GetBuffer((unsigned)i), _tempBuf, i); - s.ReleaseBuffer((unsigned)i); + s.SetFrom((const char *)(const Byte *)_tempBuf, (unsigned)i); return; } if (_tempBuf.Size() == i) |