summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index caca515..dc41268 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -1007,6 +1007,7 @@ void UI::Input::set_text(const char* t) {
if (buf)
heap_free(ui->heap, buf);
buf = nb;
+ buf_size = l;
}
string_copy(buf, t);
}