aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarlson2k <k2k@narod.ru>2013-11-28 17:53:15 +0400
committerKarlson2k <k2k@narod.ru>2013-11-28 17:53:15 +0400
commit3103113909c6ca8b80d91cb9c3e0ba81dbe77b6c (patch)
treebb4d5eb4d9c2a4a5a8ed3323571af0f15738aed2
parentddfa39d55a3cbbf6ae48a6bbc1c85de2a40ce277 (diff)
CArchive: fix improper reading of wstrings introduced in 3bf304e9323e5f2eb3cbee5a45f201426cbee84b
-rw-r--r--xbmc/utils/Archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/Archive.cpp b/xbmc/utils/Archive.cpp
index 491212a7cc..2c1f33c39e 100644
--- a/xbmc/utils/Archive.cpp
+++ b/xbmc/utils/Archive.cpp
@@ -359,7 +359,7 @@ CArchive& CArchive::operator>>(std::wstring& wstr)
*this >> iLength;
wchar_t * const p = new wchar_t[iLength];
- m_pFile->Read(p, iLength);
+ m_pFile->Read(p, iLength * sizeof(wchar_t));
wstr.assign(p, iLength);
delete[] p;