about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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, "]");