Compilation succesful on Linux Ubuntu

Probably broke a lot of things
This commit is contained in:
antopilo
2023-09-27 01:48:05 -04:00
parent ed89ca0b8c
commit c15bf532ae
53 changed files with 303 additions and 126 deletions

View File

@@ -44,7 +44,14 @@ bool PopupHelper::DefineTextDialog(const std::string& id, std::string& currentTe
char buffer[256];
memset(buffer, 0, sizeof(buffer));
#ifdef NK_WIN
std::strncpy(buffer, currentText.c_str(), sizeof(buffer));
#endif
#ifdef NK_LINUX
strncpy(buffer, currentText.c_str(), sizeof(buffer));
#endif
if (ImGui::InputText("##label", buffer, sizeof(buffer)))
{
currentText = std::string(buffer);