Fix potential buffer overflow.

Detail can be 1024 already, I guess.
This commit is contained in:
Unknown W. Brackets 2012-12-25 01:36:21 -08:00
parent 0fa0d3f6db
commit 1a71bf3aaf

View File

@ -238,7 +238,9 @@ void PSPSaveDialog::DisplaySaveDataInfo1()
}
else
{
char txt[1024];
char txt[2048];
_dbg_assert_msg_(HLE, sizeof(txt) > sizeof(SaveFileInfo), "Local buffer is too small.");
sprintf(txt,"%s\n%02d/%02d/%d %02d:%02d %lld KB\n%s\n%s"
, param.GetFileInfo(currentSelectedSave).title
, param.GetFileInfo(currentSelectedSave).modif_time.tm_mday