\r
switch(config.boot_mode) {\r
case MODE_TBASIC_V1_0:\r
- _stprintf(file_path, _T("%sTBASIC10.ROM"), emu->application_path());\r
+ _stprintf_s(file_path, _MAX_PATH, _T("%sTBASIC10.ROM"), emu->application_path());\r
break;\r
case MODE_TBASIC_V1_1:\r
- _stprintf(file_path, _T("%sTBASIC11.ROM"), emu->application_path());\r
+ _stprintf_s(file_path, _MAX_PATH, _T("%sTBASIC11.ROM"), emu->application_path());\r
break;\r
case MODE_OABASIC:\r
case MODE_OABASIC_NO_DISK:\r
- _stprintf(file_path, _T("%sOABASIC.ROM"), emu->application_path());\r
+ _stprintf_s(file_path, _MAX_PATH, _T("%sOABASIC.ROM"), emu->application_path());\r
break;\r
case MODE_MINI_PASCAL:\r
- _stprintf(file_path, _T("%sPASCAL.ROM"), emu->application_path());\r
+ _stprintf_s(file_path, _MAX_PATH, _T("%sPASCAL.ROM"), emu->application_path());\r
break;\r
}\r
if(fio->Fopen(file_path, FILEIO_READ_BINARY)) {\r