ui/motif/text.c

changeset 1068
1c79dbd248f4
parent 1064
f415387fff6f
--- a/ui/motif/text.c	Sun Feb 01 18:38:06 2026 +0100
+++ b/ui/motif/text.c	Mon Feb 02 20:59:13 2026 +0100
@@ -150,9 +150,9 @@
     return str;
 }
 
-void ui_textarea_insert(UiText *text, int pos, char *str) {
+void ui_textarea_insert(UiText *text, int pos, const char *str) {
     text->value.ptr = NULL;
-    XmTextInsert(text->obj, pos, str);
+    XmTextInsert(text->obj, pos, (char*)str);
     if(text->value.ptr) {
         text->value.free(text->value.ptr);
     }

mercurial