VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/EMVCard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/EMVCard.cpp b/src/Common/EMVCard.cpp
index 5f694240..e96422b1 100644
--- a/src/Common/EMVCard.cpp
+++ b/src/Common/EMVCard.cpp
@@ -25,11 +25,11 @@ namespace VeraCrypt
#ifndef TC_WINDOWS
wstring ArrayToHexWideString(const unsigned char * pbData, size_t cbData)
{
- static wchar_t* hexChar = L"0123456789ABCDEF";
+ static const wchar_t* hexChar = L"0123456789ABCDEF";
wstring result;
if (pbData)
{
- for (int i = 0; i < cbData; i++)
+ for (size_t i = 0; i < cbData; i++)
{
result += hexChar[pbData[i] >> 4];
result += hexChar[pbData[i] & 0x0F];