Fixing compilation
This commit is contained in:
parent
482fdea1ae
commit
1bbc5a95a3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue