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:51:15 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-10-22 16:54:05 +0200
commita9bcc8e8bd1d8fabfd2d0536358eb4f355fc6f7f (patch)
treeb82fccc6162dd050d6c48809bd7dc5f432040538 /src/ui/occupantswin.c
parent1c96115f97c1d72a12840a81ea54b8efd0f2a162 (diff)
downloadprofani-tty-a9bcc8e8bd1d8fabfd2d0536358eb4f355fc6f7f.tar.gz
Allow utf8 in occupants header 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 8d06de0e..1524de3f 100644
--- a/src/ui/occupantswin.c
+++ b/src/ui/occupantswin.c
@@ -131,9 +131,10 @@ occupantswin_occupants(const char* const roomjid)
 
             GString* prefix = g_string_new(" ");
 
-            char ch = prefs_get_occupants_header_char();
+            char* ch = prefs_get_occupants_header_char();
             if (ch) {
-                g_string_append_printf(prefix, "%c", ch);
+                g_string_append_printf(prefix, "%s", ch);
+                free(ch);
             }
 
             if (prefs_get_boolean(PREF_MUC_PRIVILEGES)) {
href='#n45'>45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100