From e5b6258c997d4faf36e2ffb8a47b386c5629b4eb Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 29 Sep 2021 20:17:41 +0200 Subject: Fix wrong format string in titlebar See https://github.com/profanity-im/profanity/commit/fd9ccec8dc604902bbb1d444dba4223ccee0a092 and https://github.com/profanity-im/profanity/issues/1597#issuecomment-930426764. --- src/ui/titlebar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index c564f8d2..a5756c01 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -525,7 +525,7 @@ _show_privacy(ProfChatWin* chatwin) wprintw(win, "["); wattroff(win, bracket_attrs); wattron(win, encrypted_attrs); - wprintw(win, pgpmsg->str); + wprintw(win, "%s", pgpmsg->str); wattroff(win, encrypted_attrs); wattron(win, bracket_attrs); wprintw(win, "]"); @@ -581,7 +581,7 @@ _show_contact_presence(ProfChatWin* chatwin, int pos, int maxpos) int needed = strlen(resource) + 1; if (pos + needed < maxpos) { wprintw(win, "/"); - wprintw(win, resource); + wprintw(win, "%s", resource); } } @@ -623,7 +623,7 @@ _show_contact_presence(ProfChatWin* chatwin, int pos, int maxpos) wprintw(win, "["); wattroff(win, bracket_attrs); wattron(win, presence_attrs); - wprintw(win, presence); + wprintw(win, "%s", presence); wattroff(win, presence_attrs); wattron(win, bracket_attrs); wprintw(win, "]"); -- cgit 1.4.1-2-gfad0