1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

fix get exe path issue

This commit is contained in:
IntelOrca
2015-06-16 14:55:09 +01:00
parent 3c1b9289ff
commit 4a69ded1c7

View File

@@ -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);
}
/**