1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix wrong format string in titlebar encryption

Fix https://github.com/profanity-im/profanity/issues/1597

Thanks @debacle.
This commit is contained in:
Michael Vetter 2021-09-29 15:48:09 +02:00
parent e943ababb9
commit fd9ccec8dc

View File

@ -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, "]");