mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-29 02:40:19 +01:00
fix unix/osx build
This commit is contained in:
@@ -943,7 +943,7 @@ CIMGUI_API void ig_LogText(const char* fmt, ...)
|
|||||||
char buffer[256];
|
char buffer[256];
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
vsprintf_s(buffer, 256, fmt, args);
|
snprintf(buffer, 256, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
ImGui::LogText("%s",buffer);
|
ImGui::LogText("%s",buffer);
|
||||||
|
Reference in New Issue
Block a user