fixed compilation on Mac OS X; some cleanup; moved header file scumm/smusH/rect.h to common/rect.h

svn-id: r4877
This commit is contained in:
Max Horn 2002-08-31 13:29:10 +00:00
parent 0c7771a706
commit a39711e256
28 changed files with 94 additions and 80 deletions

View file

@ -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;