diff options
Diffstat (limited to 'src/Platform/StringConverter.cpp')
-rw-r--r-- | src/Platform/StringConverter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Platform/StringConverter.cpp b/src/Platform/StringConverter.cpp index c6934aed..7b3134ee 100644 --- a/src/Platform/StringConverter.cpp +++ b/src/Platform/StringConverter.cpp @@ -3,9 +3,9 @@ Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed by the TrueCrypt License 3.0. Modifications and additions to the original source code (contained in this file) - and all other portions of this file are Copyright (c) 2013-2016 IDRIX + and all other portions of this file are Copyright (c) 2013-2017 IDRIX and are governed by the Apache License 2.0 the full text of which is contained in the file License.txt included in VeraCrypt binary and source code distribution packages. */ @@ -232,9 +232,9 @@ namespace VeraCrypt throw StringConversionFailed (SRC_POS, wstr); str.clear(); str.insert (0, &buf.front(), size); - Memory::Erase (&buf.front(), buf.size()); + burn (&buf.front(), buf.size()); } catch (...) { if (!noThrow) @@ -384,11 +384,11 @@ namespace VeraCrypt return; } BufferPtr ( - (byte *) buffer, + (uint8 *) buffer, bufferSize).CopyFrom ( - ConstBufferPtr ((byte *) (wstring (str).c_str()), + ConstBufferPtr ((uint8 *) (wstring (str).c_str()), (str.length() + 1) * sizeof (wchar_t) ) ); } |