Fixed a couple of sprintfs that wouldn't compile on Linux.

This commit is contained in:
wrenczes
2010-11-21 04:11:23 +00:00
parent 2b6469e391
commit e2659b63f1
2 changed files with 3 additions and 3 deletions

View File

@@ -495,9 +495,9 @@ void OptionTheme::Render()
author = "";
bChecked = true;
if (selections[value] == "Default")
sprintf(buf, JGE_GET_RES("graphics/themeinfo.txt").c_str());
sprintf(buf, "%s", JGE_GET_RES("graphics/themeinfo.txt").c_str());
else
sprintf(buf, JGE_GET_RES("themes/%s/themeinfo.txt").c_str(), selections[value].c_str());
sprintf(buf, "%s%s", JGE_GET_RES("themes/%s/themeinfo.txt").c_str(), selections[value].c_str());
std::ifstream file(buf);
if (file)
{