about summary refs log tree commit diff stats
path: root/src/ui/occupantswin.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-10-22 16:47:15 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-10-22 16:54:05 +0200
commit1c96115f97c1d72a12840a81ea54b8efd0f2a162 (patch)
treee6f93f256fb78ac5568fb714cf46eb26ac8b3c01 /src/ui/occupantswin.c
parentfa2881fcea9009ffbd50947d755a4c847a157cae (diff)
downloadprofani-tty-1c96115f97c1d72a12840a81ea54b8efd0f2a162.tar.gz
Allow utf8 in occupants char
Diffstat (limited to 'src/ui/occupantswin.c')
-rw-r--r--src/ui/occupantswin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/occupantswin.c b/src/ui/occupantswin.c
index 4ceb5575..8d06de0e 100644
--- a/src/ui/occupantswin.c
+++ b/src/ui/occupantswin.c
@@ -77,9 +77,10 @@ _occuptantswin_occupant(ProfLayoutSplit* layout, GList* item, gboolean showjid,
 
     GString* msg = g_string_new(spaces->str);
 
-    char ch = prefs_get_occupants_char();
+    char* ch = prefs_get_occupants_char();
     if (ch) {
-        g_string_append_printf(msg, "%c", ch);
+        g_string_append_printf(msg, "%s", ch);
+        free(ch);
     }
 
     gboolean wrap = prefs_get_boolean(PREF_OCCUPANTS_WRAP);