Fixing compilation

This commit is contained in:
Sven Hesse
2008-07-26 12:09:06 +00:00
parent 482fdea1ae
commit 1bbc5a95a3
+3 -1
View File
@@ -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