mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fixing compilation
This commit is contained in:
+3
-1
@@ -2152,6 +2152,7 @@ static void luaFileFindNext() {
|
||||
|
||||
static void luaFileFindFirst() {
|
||||
const char *path, *extension;
|
||||
char tmpPath[MAXPATHLEN];
|
||||
lua_Object pathObj;
|
||||
|
||||
DEBUG_FUNCTION();
|
||||
@@ -2165,7 +2166,8 @@ static void luaFileFindFirst() {
|
||||
#if defined(UNIX)
|
||||
const char *home = getenv("HOME");
|
||||
if (home && *home && strlen(home) < MAXPATHLEN) {
|
||||
snprintf(path, MAXPATHLEN, "%s/%s", home, DEFAULT_SAVE_PATH);
|
||||
snprintf(tmpPath, MAXPATHLEN, "%s/%s", home, DEFAULT_SAVE_PATH);
|
||||
path = tmpPath;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user