about summary refs log tree commit diff stats
path: root/src/plugins
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/plugins
parent97898ee082d314eb6d7f27a0b0d33027defc9a32 (diff)
downloadprofani-tty-24f0dc2734baf13ff5ecbb3e46bc08b809ee4736.tar.gz
Always use string format in win_printf
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/api.c b/src/plugins/api.c
index 3de5efab..670f8551 100644
--- a/src/plugins/api.c
+++ b/src/plugins/api.c
@@ -85,7 +85,7 @@ api_cons_show_themed(const char *const group, const char *const key, const char
     char *parsed = str_replace(message, "\r\n", "\n");
     theme_item_t themeitem = plugin_themes_get(group, key, def);
     ProfWin *console = wins_get_console();
-    win_printf(console, '-', 0, NULL, 0, themeitem, "", parsed);
+    win_printf(console, '-', 0, NULL, 0, themeitem, "", "%s", parsed);
 
     free(parsed);
 
@@ -368,7 +368,7 @@ api_win_show(const char *tag, const char *line)
     }
 
     ProfWin *window = (ProfWin*)pluginwin;
-    win_printf(window, '!', 0, NULL, 0, 0, "", line);
+    win_printf(window, '!', 0, NULL, 0, 0, "", "%s", line);
 
     return 1;
 }
@@ -393,7 +393,7 @@ api_win_show_themed(const char *tag, const char *const group, const char *const
 
     theme_item_t themeitem = plugin_themes_get(group, key, def);
     ProfWin *window = (ProfWin*)pluginwin;
-    win_printf(window, '!', 0, NULL, 0, themeitem, "", line);
+    win_printf(window, '!', 0, NULL, 0, themeitem, "", "%s", line);
 
     return 1;
 }