diff --git a/src/openrct2.c b/src/openrct2.c index 3dc7ff892b..83875fa3d6 100644 --- a/src/openrct2.c +++ b/src/openrct2.c @@ -114,7 +114,7 @@ static void openrct2_set_exe_path() pathEnd = strlen(exePath) - (strlen(exePath) - exeDelimiterIndex); strncpy(tempPath, exePath, pathEnd); tempPath[pathEnd] = '\0'; - _fullpath(gExePath, tempPath, strlen(tempPath)); + _fullpath(gExePath, tempPath, MAX_PATH); } /**