From fd9ccec8dc604902bbb1d444dba4223ccee0a092 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 29 Sep 2021 15:48:09 +0200 Subject: [PATCH] Fix wrong format string in titlebar encryption Fix https://github.com/profanity-im/profanity/issues/1597 Thanks @debacle. --- src/ui/titlebar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 98af2b24..c564f8d2 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -427,7 +427,7 @@ _show_muc_privacy(ProfMucWin* mucwin) wprintw(win, "["); wattroff(win, bracket_attrs); wattron(win, encrypted_attrs); - wprintw(win, mucwin->enctext); + wprintw(win, "%s", mucwin->enctext); wattroff(win, encrypted_attrs); wattron(win, bracket_attrs); wprintw(win, "]"); @@ -451,7 +451,7 @@ _show_privacy(ProfChatWin* chatwin) wprintw(win, "["); wattroff(win, bracket_attrs); wattron(win, encrypted_attrs); - wprintw(win, chatwin->enctext); + wprintw(win, "%s", chatwin->enctext); wattroff(win, encrypted_attrs); wattron(win, bracket_attrs); wprintw(win, "]");