ref: f95176a5b8bfd253a2e90841055a573209ef5d4d
parent: a4071b31a4f6567faddc970e6c00e86f8fe4d793
author: Turo Lamminen <turotl@gmail.com>
date: Wed May 23 08:39:43 EDT 2018
config: Fix const correctness issue in M_GetSaveGameDir Some paths return a new string so all paths must return a new string. Otherwise the caller wouldn't know whether to release it or not.
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -2246,7 +2246,7 @@
else if (M_ParmExists("-cdrom"))
{
- savegamedir = configdir;
+ savegamedir = M_StringDuplicate(configdir);
}
#endif
// If not "doing" a configuration directory (Windows), don't "do"