diff --git a/extern/igfd/ImGuiFileDialog.cpp b/extern/igfd/ImGuiFileDialog.cpp index 328bccb31..3a30ac2b5 100644 --- a/extern/igfd/ImGuiFileDialog.cpp +++ b/extern/igfd/ImGuiFileDialog.cpp @@ -3930,6 +3930,7 @@ namespace IGFD ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_SpanAvailWidth; // TODO BUG?! + // YES BUG: THIS JUST CRASHED FOR SOME REASON va_list args; va_start(args, vFmt); vsnprintf(fdi.puVariadicBuffer, MAX_FILE_DIALOG_NAME_BUFFER, vFmt, args); @@ -4137,7 +4138,8 @@ namespace IGFD if (ImGui::TableNextColumn()) // file name { // TODO BUG?!?!?! - needToBreakTheloop = prSelectableItem(i, infos, selected, _str.c_str()); + // YES BUG + needToBreakTheloop = prSelectableItem(i, infos, selected, "%s", _str.c_str()); if (needToBreakTheloop==2) escape=true; } if (ImGui::TableNextColumn()) // file type