From eefaefccc0bc144098895a413805c512befe1b82 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 5 Apr 2015 22:49:34 +0200 Subject: Windows: use secure string functions --- src/Common/SecurityToken.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common') 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 -- cgit v1.2.3