mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-11 22:10:07 -05:00
Remove warning in Windows
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user