From 7fdc4ed7f677fcb78163045678dfc2f541795f19 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 21 Feb 2020 08:02:11 +0100 Subject: win_print_incoming() strdup the charactar Fix bug introduced in 1f8b1eb740391941e79e1004ad041f8178a2b674. Forgot to strdup() here. --- src/ui/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/window.c b/src/ui/window.c index 9eaa0118..d44795d5 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1101,7 +1101,7 @@ _win_correct(ProfWin *window, const char *const message, const char *const id, c void win_print_incoming(ProfWin *window, const char *const display_name_from, ProfMessage *message) { - char *enc_char = "-"; + char *enc_char = strdup("-"); int flags = NO_ME; if (!message->trusted) { -- cgit 1.4.1-2-gfad0