VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/SecurityToken.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-05 22:49:34 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-04-06 00:22:39 +0200
commiteefaefccc0bc144098895a413805c512befe1b82 (patch)
treea10187a41a62693b0853623817e4c4ab318890f4 /src/Common/SecurityToken.cpp
parent2784652ab880dcea82aa212096b64d39695012fc (diff)
downloadVeraCrypt-eefaefccc0bc144098895a413805c512befe1b82.tar.gz
VeraCrypt-eefaefccc0bc144098895a413805c512befe1b82.zip
Windows: use secure string functions
Diffstat (limited to 'src/Common/SecurityToken.cpp')
-rw-r--r--src/Common/SecurityToken.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/SecurityToken.cpp b/src/Common/SecurityToken.cpp
index e8fb275b..1bbad78e 100644
--- a/src/Common/SecurityToken.cpp
+++ b/src/Common/SecurityToken.cpp
@@ -700,7 +700,7 @@ namespace VeraCrypt
}
}
wchar_t err[8192];
- wsprintfW (err, L"%s:\n\n%hs%s", GetString ("SECURITY_TOKEN_ERROR"), errorString.c_str(), subjectErrorCode.str().c_str());
+ StringCbPrintfW (err, sizeof(err),L"%s:\n\n%hs%s", GetString ("SECURITY_TOKEN_ERROR"), errorString.c_str(), subjectErrorCode.str().c_str());
ErrorDirect (err, parent);
}
else