1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-01-04 12:48:12 -06:00

Windows: use secure string functions

This commit is contained in:
Mounir IDRASSI
2015-04-05 22:49:34 +02:00
parent 2784652ab8
commit eefaefccc0
2 changed files with 698 additions and 704 deletions

View File

@@ -700,7 +700,7 @@ namespace VeraCrypt
} }
} }
wchar_t err[8192]; 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); ErrorDirect (err, parent);
} }
else else

File diff suppressed because it is too large Load Diff