about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-09-29 20:17:41 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-09-29 20:17:41 +0200
commite5b6258c997d4faf36e2ffb8a47b386c5629b4eb (patch)
treefd645005783d101da85bd365b6c5ecc002c37cb9 /src
parentb72801a0e4afa6ec8b3a500fcfd294f46584695d (diff)
downloadprofani-tty-e5b6258c997d4faf36e2ffb8a47b386c5629b4eb.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/ui/titlebar.c6
1 files changed, 3 insertions, 3 deletions
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, "]");