1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Fix wrong format string in titlebar

See
fd9ccec8dc
and
https://github.com/profanity-im/profanity/issues/1597#issuecomment-930426764.
This commit is contained in:
Michael Vetter 2021-09-29 20:17:41 +02:00
parent b72801a0e4
commit e5b6258c99

View File

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