diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-07-06 15:33:08 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-07-06 15:33:08 -0400 |
| commit | ec1e52de5398fef6267d14e08c275077db9d3c66 (patch) | |
| tree | 83f07d6bcd30b6b68056eceaa70f1c572b59fc8e /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | cc3dda5b22933380265c946fa50738bf83fc9b01 (diff) | |
VideoCommon: Get rid of an snprintf call in VideoConfig.cpp
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index bb8d698508..c01b7e5461 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -7,6 +7,7 @@ #include "Common/Common.h" #include "Common/FileUtil.h" #include "Common/IniFile.h" +#include "Common/StringUtil.h" #include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/Movie.h" @@ -125,9 +126,8 @@ void VideoConfig::GameIniLoad() #define CHECK_SETTING(section, key, var) do { \ decltype(var) temp = var; \ if (iniFile.GetIfExists(section, key, &var) && var != temp) { \ - char buf[256]; \ - snprintf(buf, sizeof(buf), "Note: Option \"%s\" is overridden by game ini.", key); \ - OSD::AddMessage(buf, 7500); \ + std::string msg = StringFromFormat("Note: Option \"%s\" is overridden by game ini.", key); \ + OSD::AddMessage(msg, 7500); \ gfx_override_exists = true; \ } \ } while (0) |
