about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-21 08:02:11 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-21 08:02:11 +0100
commit7fdc4ed7f677fcb78163045678dfc2f541795f19 (patch)
tree9323f6feacb2cd171d0abc1053c750b813c403d1 /src
parentc13553bfcb3f92fb71aa9839bca16609f1c06fb0 (diff)
downloadprofani-tty-7fdc4ed7f677fcb78163045678dfc2f541795f19.tar.gz
win_print_incoming() strdup the charactar
Fix bug introduced in 1f8b1eb740391941e79e1004ad041f8178a2b674.
Forgot to strdup() here.
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.c2
1 files changed, 1 insertions, 1 deletions
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) {