]> git.mxchange.org Git - flightgear.git/commitdiff
256 Bytes ought to be enough for anybody ... hmm, better 512.
authormfranz <mfranz>
Sun, 17 Jun 2007 08:14:02 +0000 (08:14 +0000)
committermfranz <mfranz>
Sun, 17 Jun 2007 08:14:02 +0000 (08:14 +0000)
Why /sim/fg-current at all? Because we have a file selector dialog
(still unfinished), and one might like to start it from the current
directory, to find saved flights/screenshots/whatever.

src/Main/fg_init.cxx

index 626f05291cba152a68244a4728efec445c2db771..ef838b7e5c4cf194dde4c325d0730db5603adc78 100644 (file)
@@ -1313,7 +1313,7 @@ bool fgInitGeneral() {
     }
 #endif
 
-    char buf[256], *cwd = getcwd(buf, 256);
+    char buf[512], *cwd = getcwd(buf, 512);
     fgSetString("/sim/fg-current", cwd ? cwd : "");
     return true;
 }