1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

win_print_incoming() strdup the charactar

Fix bug introduced in 1f8b1eb740391941e79e1004ad041f8178a2b674.
Forgot to strdup() here.
This commit is contained in:
Michael Vetter 2020-02-21 08:02:11 +01:00
parent c13553bfcb
commit 7fdc4ed7f6

View File

@ -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) {