Skip to content

Commit

Permalink
Fix OpenRCT2#10228: Can't import RCT1 Deluxe from Steam
Browse files Browse the repository at this point in the history
Use size of buffer rather than the size of a pointer which would always return 4 or 8 for the buffer size.
  • Loading branch information
IntelOrca committed Nov 18, 2019
1 parent 40e22eb commit 16186d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.2.4+ (in development)
------------------------------------------------------------------------
- Change: [#1164] Use available translations for shortcut key bindings.
- Fix: [#10228] Can't import RCT1 Deluxe from Steam.

0.2.4 (2019-10-28)
------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/platform/Posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool platform_original_game_data_exists(const utf8* path)
bool platform_original_rct1_data_exists(const utf8* path)
{
char buffer[MAX_PATH], checkPath1[MAX_PATH], checkPath2[MAX_PATH];
safe_strcpy(buffer, path, sizeof(path));
safe_strcpy(buffer, path, MAX_PATH);
safe_strcat_path(buffer, "Data", MAX_PATH);
safe_strcpy(checkPath1, buffer, MAX_PATH);
safe_strcpy(checkPath2, buffer, MAX_PATH);
Expand Down

0 comments on commit 16186d5

Please sign in to comment.