Add file extension

This commit is contained in:
simon.kagstrom 2010-01-30 14:34:24 +00:00
parent 55b605b146
commit 6ad852e2b9

View File

@ -397,10 +397,10 @@ void Gui::saveGameInfo()
size_t sz = ntohl(p->sz);
char *new_name = (char *)xmalloc(strlen(this->metadata_base_path) +
3 + strlen(this->cur_gameInfo->filename));
8 + strlen(this->cur_gameInfo->filename));
FILE *fp;
sprintf(new_name, "%s/%s", this->metadata_base_path,
sprintf(new_name, "%s/%s.lra", this->metadata_base_path,
this->cur_gameInfo->filename);
fp = fopen(new_name, "w");
if (fp)