From ed365dfef5fc615b14f6d650fbacce24b6c43171 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 12 Jan 2025 15:04:31 -0600 Subject: [PATCH] [studio] Fix new project menu to return an appropriately sized string for name --- src/olympic/studio/applib/src/newproject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/olympic/studio/applib/src/newproject.cpp b/src/olympic/studio/applib/src/newproject.cpp index a3f00995..6a0cdbe1 100644 --- a/src/olympic/studio/applib/src/newproject.cpp +++ b/src/olympic/studio/applib/src/newproject.cpp @@ -50,7 +50,7 @@ void NewProject::draw(studio::StudioContext &ctx) noexcept { void NewProject::drawNewProjectName(studio::StudioContext &sctx) noexcept { drawWindow(sctx.tctx, &m_open, [this, &sctx] { - ImGui::InputText("Name", m_projectName.data(), m_projectName.cap()); + ig::InputText("Name", m_projectName); ImGui::Text("Path: %s", m_projectPath.c_str()); if (ImGui::Button("Browse")) { oxLogError(studio::chooseDirectory().moveTo(m_projectPath));