Remove warning in Windows

This commit is contained in:
Alexander Bock
2014-12-08 12:44:29 +01:00
parent 56e1187ee7
commit 7f8fa6add3
+5
View File
@@ -158,7 +158,12 @@ void GUI::initialize() {
FileSys.cacheManager()->getCachedFile(configurationFile, "", cachedFile, true);
char* buffer = new char[cachedFile.size() + 1];
#ifdef WIN32
strcpy_s(buffer, cachedFile.size() + 1, cachedFile.c_str());
#else
strcpy(buffer, cachedFile.c_str());
#endif
ImGuiIO& io = ImGui::GetIO();
io.IniFilename = buffer;