From 688f7599677666075a6b766a075dc5572bfcc48b Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 7 Aug 2020 14:52:43 -0700 Subject: [PATCH] Fix array decay in PLATFORM_getOSDirectory() Whoops. --- desktop_version/src/FileSystemUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/FileSystemUtils.cpp b/desktop_version/src/FileSystemUtils.cpp index 496d4247..501f2ec3 100644 --- a/desktop_version/src/FileSystemUtils.cpp +++ b/desktop_version/src/FileSystemUtils.cpp @@ -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 }