diff options
author | Max Horn | 2002-08-31 13:29:10 +0000 |
---|---|---|
committer | Max Horn | 2002-08-31 13:29:10 +0000 |
commit | a39711e25670b366ed76534cc926ac70ea6c1edd (patch) | |
tree | 3fdba199dc0d93333d68dbb44a7e1bc571f78d93 /backends/dc/vmsave.cpp | |
parent | 0c7771a7062fc982cbaca53fee022d9538a44f70 (diff) | |
download | scummvm-rg350-a39711e25670b366ed76534cc926ac70ea6c1edd.tar.gz scummvm-rg350-a39711e25670b366ed76534cc926ac70ea6c1edd.tar.bz2 scummvm-rg350-a39711e25670b366ed76534cc926ac70ea6c1edd.zip |
fixed compilation on Mac OS X; some cleanup; moved header file scumm/smusH/rect.h to common/rect.h
svn-id: r4877
Diffstat (limited to 'backends/dc/vmsave.cpp')
-rw-r--r-- | backends/dc/vmsave.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/dc/vmsave.cpp b/backends/dc/vmsave.cpp index 34bf2e40fa..ef3999ddb9 100644 --- a/backends/dc/vmsave.cpp +++ b/backends/dc/vmsave.cpp @@ -69,9 +69,7 @@ static vmsaveResult trySave(GameDetector *d, const char *data, int size, memset(&header, 0, sizeof(header)); strncpy(header.shortdesc, "ScummVM savegame", 16); - char *game_name = d->getGameName(); - strncpy(header.longdesc, game_name, 32); - free(game_name); + strncpy(header.longdesc, d->getGameName(), 32); strncpy(header.id, "ScummVM", 16); icon.create_vmicon(iconbuffer); header.numicons = 1; |