mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Fix potential buffer overflow.
Detail can be 1024 already, I guess.
This commit is contained in:
1 parent
0fa0d3f6db
commit
1a71bf3aaf
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user