diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/gameDetector.cpp | 2 | ||||
| -rw-r--r-- | common/gameDetector.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index c17c78d31c..f228d9173e 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -642,7 +642,7 @@ int GameDetector::detectMain() { if (!_gameDataPath) { warning("No path was provided. Assuming the data files are in the current directory"); - _gameDataPath = ""; + _gameDataPath = strdup(""); #ifndef __PALM_OS__ // add last slash also in File::fopenNoCase, so this is not needed } else if (_gameDataPath[strlen(_gameDataPath)-1] != '/' #ifdef __MORPHOS__ diff --git a/common/gameDetector.h b/common/gameDetector.h index d9e5b104a5..697d05c7c4 100644 --- a/common/gameDetector.h +++ b/common/gameDetector.h @@ -70,7 +70,7 @@ struct VersionSettings { ADLIB_NEVER = 3 } adlib; uint32 features; - char *detectname; + const char *detectname; }; struct MusicDriver { |
