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];
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

File diff suppressed because it is too large Load Diff