From: Holger Schemel Date: Thu, 18 Apr 2019 23:04:35 +0000 (+0200) Subject: fixed function to always return a string copy (and never a string constant) X-Git-Tag: 4.1.3.0~13 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9141e173a82b1105ed0f60c649bfc94dbc5a26b4;p=rocksndiamonds.git fixed function to always return a string copy (and never a string constant) --- 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