about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-09-29 15:48:09 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-09-29 15:48:09 +0200
commitfd9ccec8dc604902bbb1d444dba4223ccee0a092 (patch)
treea2bdd0badc7687f0d994faba5259adb2c52946b3 /src
parente943ababb95606651d3555bfc719b48646f2dc9f (diff)
downloadprofani-tty-fd9ccec8dc604902bbb1d444dba4223ccee0a092.tar.gz
Fix wrong format string in titlebar encryption
Fix https://github.com/profanity-im/profanity/issues/1597

Thanks @debacle.
Diffstat (limited to 'src')
-rw-r--r--src/ui/titlebar.c4
1 files 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, "]");