Er, malloc good.

svn-id: r3639
This commit is contained in:
James Brown 2002-03-02 08:48:31 +00:00
parent ee33febf34
commit 0ad040d954

View File

@ -208,7 +208,8 @@ void Scumm::scummMain(int argc, char **argv) {
if (!_gameDataPath) {
warning("No path was provided. Assuming that data file are in the current directory");
strcpy(_gameDataPath, "");
_gameDataPath = (char *)malloc(sizeof(char) * 2);
strcpy(_gameDataPath, "");
}
if(_features & GF_AFTER_V7)