From 6ad852e2b909d9cdec92205716f9e2a38bbb652f Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 30 Jan 2010 14:34:24 +0000 Subject: [PATCH] Add file extension --- Src/gui/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/gui/gui.cpp b/Src/gui/gui.cpp index 125e6a4..e679ee3 100644 --- a/Src/gui/gui.cpp +++ b/Src/gui/gui.cpp @@ -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)