From: Holger Schemel Date: Fri, 13 Nov 2015 20:44:08 +0000 (+0100) Subject: fixed handling of R'n'D program filenames with suffix X-Git-Tag: 4.0.0.0-rc1~124 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1a4737977345788c8d4a9a605663d5aae62471ff;p=rocksndiamonds.git fixed handling of R'n'D program filenames with suffix --- diff --git a/src/main.c b/src/main.c index 6f1559b5..44f6f3be 100644 --- a/src/main.c +++ b/src/main.c @@ -5645,7 +5645,7 @@ static void InitProgramConfig(char *command_filename) userdata_basename = getBaseName(config_filename); if (strSuffix(userdata_basename, ".conf")) - userdata_basename[strlen(userdata_basename) - 4] = '\0'; + userdata_basename[strlen(userdata_basename) - 5] = '\0'; LoadSetupFromFilename(config_filename); }