Oops, fixerd compilation

This commit is contained in:
pelya
2014-03-22 23:33:05 +02:00
parent c7ed03ded9
commit 4773b09d13

View File

@@ -1308,7 +1308,7 @@ void DeterminePaths(const char *exe)
#ifdef __ANDROID__
// Copy savegames from "full" OpenTTD to "lite" save directory
char curdir[PATH_MAX];
if (getcwd(curdir, sizeof(BUF)) && strstr(curdir, "org.openttd.sdl.lowmem")) {
if (getcwd(curdir, sizeof(curdir)) && strstr(curdir, "org.openttd.sdl.lowmem")) {
// No, I won't implement file copying in C, shell script is just fine for this job
system("cd ../../org.openttd.sdl/files/.openttd/save && "
"for F in *.sav ; do ls \"../../../../org.openttd.sdl/files/.openttd/save/$F\" || "