From fd5fe614625592a5dcaff9bb0d22dd5e777b2678 Mon Sep 17 00:00:00 2001 From: mwalker33 Date: Mon, 13 Apr 2020 20:46:01 +1000 Subject: [PATCH] getwd fix --- client/preferences.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/preferences.c b/client/preferences.c index 7fa01ee3a..434c5d493 100644 --- a/client/preferences.c +++ b/client/preferences.c @@ -32,6 +32,7 @@ static int setCmdHelp(const char *Cmd); // Load all settings into memory (struct) static char* prefGetFilename (void) { + /* static char Buffer[FILENAME_MAX+sizeof(preferencesFilename)+2] = {0}; char PATH[FILENAME_MAX] = {0}; @@ -43,6 +44,8 @@ static char* prefGetFilename (void) { #endif return Buffer; + */ + return preferencesFilename; } int preferences_load (void) {