OSDN Git Service

[General] Tracking to upstream, rev 2015-01-14.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pasopia / memory.cpp
index d1de679..188d214 100644 (file)
@@ -50,17 +50,17 @@ void MEMORY::load_ipl()
        \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