From 4a69ded1c7099ce4ee6c029a172e641e928b6f4b Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Tue, 16 Jun 2015 14:55:09 +0100 Subject: [PATCH] fix get exe path issue --- src/openrct2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**