about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-09 20:56:53 +0000
committerJames Booth <boothj5@gmail.com>2013-02-09 20:56:53 +0000
commit0db10bcb1c05db9b58500517374ba8affac81396 (patch)
tree22b37863bf71811ceadde6bd35791a395d35f1e8
parent9874470c8f83e78ebcc894c38b2a7134c1a9d761 (diff)
downloadprofani-tty-0db10bcb1c05db9b58500517374ba8affac81396.tar.gz
Fixed remaining '%' char printing
-rw-r--r--src/ui/windows.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 1b9633c3..48a72088 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -358,7 +358,7 @@ ui_show_incoming_msg(const char * const from, const char * const message,
         if (strncmp(message, "/me ", 4) == 0) {
             wattron(console->win, COLOUR_THEM);
             wprintw(console->win, "*%s ", from);
-            wprintw(console->win, message + 4);
+            wprintw(console->win, "%s", message + 4);
             wprintw(console->win, "\n");
             wattroff(console->win, COLOUR_THEM);
         } else {
@@ -395,7 +395,7 @@ ui_show_incoming_msg(const char * const from, const char * const message,
             if (strncmp(message, "/me ", 4) == 0) {
                 wattron(win, COLOUR_THEM);
                 wprintw(win, "*%s ", display_from);
-                wprintw(win, message + 4);
+                wprintw(win, "%s", message + 4);
                 wprintw(win, "\n");
                 wattroff(win, COLOUR_THEM);
             } else {
@@ -434,7 +434,7 @@ ui_show_incoming_msg(const char * const from, const char * const message,
             if (strncmp(message, "/me ", 4) == 0) {
                 wattron(win, COLOUR_THEM);
                 wprintw(win, "*%s ", display_from);
-                wprintw(win, message + 4);
+                wprintw(win, "%s", message + 4);
                 wprintw(win, "\n");
                 wattroff(win, COLOUR_THEM);
             } else {
@@ -803,7 +803,7 @@ win_show_outgoing_msg(const char * const from, const char * const to,
     if (strncmp(message, "/me ", 4) == 0) {
         wattron(win, COLOUR_ME);
         wprintw(win, "*%s ", from);
-        wprintw(win, message + 4);
+        wprintw(win, "%s", message + 4);
         wprintw(win, "\n");
         wattroff(win, COLOUR_ME);
     } else {
@@ -966,7 +966,7 @@ win_show_room_history(const char * const room_jid, const char * const nick,
 
     if (strncmp(message, "/me ", 4) == 0) {
         wprintw(win, "*%s ", nick);
-        wprintw(win, message + 4);
+        wprintw(win, "%s", message + 4);
         wprintw(win, "\n");
     } else {
         wprintw(win, "%s: ", nick);
@@ -989,7 +989,7 @@ win_show_room_message(const char * const room_jid, const char * const nick,
         if (strncmp(message, "/me ", 4) == 0) {
             wattron(win, COLOUR_THEM);
             wprintw(win, "*%s ", nick);
-            wprintw(win, message + 4);
+            wprintw(win, "%s", message + 4);
             wprintw(win, "\n");
             wattroff(win, COLOUR_THEM);
         } else {
@@ -1001,7 +1001,7 @@ win_show_room_message(const char * const room_jid, const char * const nick,
         if (strncmp(message, "/me ", 4) == 0) {
             wattron(win, COLOUR_ME);
             wprintw(win, "*%s ", nick);
-            wprintw(win, message + 4);
+            wprintw(win, "%s", message + 4);
             wprintw(win, "\n");
             wattroff(win, COLOUR_ME);
         } else {