about summary refs log tree commit diff stats
path: root/src/ui/xmlwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-10-12 00:40:41 +0100
committerJames Booth <boothj5@gmail.com>2016-10-12 00:40:41 +0100
commit24f0dc2734baf13ff5ecbb3e46bc08b809ee4736 (patch)
treeb245d4a4c90e1ae1868333e9ae91ca05c340dc28 /src/ui/xmlwin.c
parent97898ee082d314eb6d7f27a0b0d33027defc9a32 (diff)
downloadprofani-tty-24f0dc2734baf13ff5ecbb3e46bc08b809ee4736.tar.gz
Always use string format in win_printf
Diffstat (limited to 'src/ui/xmlwin.c')
-rw-r--r--src/ui/xmlwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/xmlwin.c b/src/ui/xmlwin.c
index c8af2211..0172e9ad 100644
--- a/src/ui/xmlwin.c
+++ b/src/ui/xmlwin.c
@@ -46,11 +46,11 @@ xmlwin_show(ProfXMLWin *xmlwin, const char *const msg)
     ProfWin *window = (ProfWin*)xmlwin;
     if (g_str_has_prefix(msg, "SENT:")) {
         win_printf(window, '-', 0, NULL, 0, 0, "", "SENT:");
-        win_printf(window, '-', 0, NULL, 0, THEME_ONLINE, "", &msg[6]);
+        win_printf(window, '-', 0, NULL, 0, THEME_ONLINE, "", "%s", &msg[6]);
         win_printf(window, '-', 0, NULL, 0, THEME_ONLINE, "", "");
     } else if (g_str_has_prefix(msg, "RECV:")) {
         win_printf(window, '-', 0, NULL, 0, 0, "", "RECV:");
-        win_printf(window, '-', 0, NULL, 0, THEME_AWAY, "", &msg[6]);
+        win_printf(window, '-', 0, NULL, 0, THEME_AWAY, "", "%s", &msg[6]);
         win_printf(window, '-', 0, NULL, 0, THEME_AWAY, "", "");
     }
 }