1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-01 18:43:33 +02:00

Fix array decay in PLATFORM_getOSDirectory()

Whoops.
This commit is contained in:
Misa 2020-08-07 14:52:43 -07:00 committed by Ethan Lee
parent 609ceb782c
commit 688f759967

View File

@ -354,7 +354,7 @@ void PLATFORM_getOSDirectory(char* output)
WideCharToMultiByte(CP_UTF8, 0, utf16_path, -1, output, MAX_PATH, NULL, NULL);
SDL_strlcat(output, "\\VVVVVV\\", sizeof(output));
#else
SDL_strlcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"), sizeof(output));
SDL_strlcpy(output, PHYSFS_getPrefDir("distractionware", "VVVVVV"), MAX_PATH);
#endif
}