mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-12 10:56:45 +00:00
Fix potential buffer overflow.
Detail can be 1024 already, I guess.
This commit is contained in:
parent
0fa0d3f6db
commit
1a71bf3aaf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user