1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01: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
}