From 9141e173a82b1105ed0f60c649bfc94dbc5a26b4 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 19 Apr 2019 01:04:35 +0200 Subject: [PATCH] fixed function to always return a string copy (and never a string constant) --- src/libgame/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 7e87a76e..5cdaa874 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -457,7 +457,7 @@ char *getProgramMainDataPath(char *command_filename, char *base_path) { // check if the program's main data base directory is configured if (!strEqual(base_path, ".")) - return base_path; + return getStringCopy(base_path); /* if the program is configured to start from current directory (default), determine program package directory from program binary (some versions -- 2.34.1