Ensure memset() does not underflow mCertificate.wszTitleName

This commit is contained in:
Echelon9 2012-10-08 00:41:27 +11:00
parent 5b1d969547
commit cc5e0dc658
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ Xbe::Xbe(class Exe *x_Exe, const char *x_szTitle, bool x_bRetail)
m_Certificate.dwTitleId = 0xFFFF0002;
// title name
memset(m_Certificate.wszTitleName, 0, 40);
memset(m_Certificate.wszTitleName, 0, 40 * sizeof(wchar_t));
mbstowcs(m_Certificate.wszTitleName, x_szTitle, 40);
// zero out alternate ids