Open douglaslassance opened 2 years ago
Unreal has for this purpose FPlatformString::Strcpy which is typedef'd to their own per-platform implementation. Used it myself and found no problems so far.
https://github.com/IDI-Systems/UnrealImGui replaces all instances of strcpy_s
with strncpy
.
Commit b346fa894d2e257ea40aef9816678a17d212d50d breaks macOS (an likely Linux) compatibility with the use of
strcpy_s
inSource/ImGui/Private/ImGuiContextManager.cpp
on line 275.My proposed merge request simply disables this code on non-Windows platforms. That said, we can probably support the added functionality on Linux and macOS by following this Stack Overflow answer.