diff options
Diffstat (limited to 'src/ui/occupantswin.c')
-rw-r--r-- | src/ui/occupantswin.c | 5 |
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); |