From 49a89950a84ec8641a2252618b026fb2bda29858 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 17 Jun 2007 08:14:02 +0000 Subject: [PATCH] 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. --- src/Main/fg_init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5