From: mfranz Date: Sun, 17 Jun 2007 08:14:02 +0000 (+0000) Subject: 256 Bytes ought to be enough for anybody ... hmm, better 512. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49a89950a84ec8641a2252618b026fb2bda29858;p=flightgear.git 256 Bytes ought to be enough for anybody ... hmm, better 512. 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. --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 626f05291..ef838b7e5 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -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; }