From 0d99b6c71cd096599b4805d230483f3e4e958af1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 24 May 2009 20:29:04 +0000 Subject: (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. --- src/gfxinit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gfxinit.cpp') diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index 9619b4e87..0554eee9b 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -378,8 +378,7 @@ static bool FillGraphicsSetDetails(GraphicsSet *graphics, IniFile *ini, const ch } const char *filename = item->value; - file->filename = MallocT(strlen(filename) + strlen(path) + 1); - sprintf((char*)file->filename, "%s%s", path, filename); + file->filename = str_fmt("%s%s", path, filename); /* Then find the MD5 checksum */ item = md5s->GetItem(filename, false); -- cgit v1.2.3-54-g00ecf