From 131eda9c94c744758376d0a6e26155bf63a41c1f Mon Sep 17 00:00:00 2001 From: Arnavion Date: Thu, 25 Sep 2014 00:54:38 -0700 Subject: [PATCH] Fixed instances of hexchat_printf that unsafely used a string parameter as a format string. Fixes #1153 --- plugins/sysinfo/xsys.c | 4 ++-- plugins/upd/upd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/sysinfo/xsys.c b/plugins/sysinfo/xsys.c index 474729c5..4ab6e873 100644 --- a/plugins/sysinfo/xsys.c +++ b/plugins/sysinfo/xsys.c @@ -750,7 +750,7 @@ sysinfo_cb (char *word[], char *word_eol[], void *userdata) if (!g_ascii_strcasecmp ("HELP", word[2+offset])) { - hexchat_printf (ph, sysinfo_help); + hexchat_printf (ph, "%s", sysinfo_help); return HEXCHAT_EAT_ALL; } else if (!g_ascii_strcasecmp ("LIST", word[2+offset])) @@ -870,7 +870,7 @@ sysinfo_cb (char *word[], char *word_eol[], void *userdata) } else { - hexchat_printf (ph, sysinfo_help); + hexchat_printf (ph, "%s", sysinfo_help); return HEXCHAT_EAT_ALL; } } diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index 7ebf95bc..6fcf3be9 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -128,7 +128,7 @@ print_version (char *word[], char *word_eol[], void *userdata) if (!g_ascii_strcasecmp ("HELP", word[2])) { - hexchat_printf (ph, upd_help); + hexchat_printf (ph, "%s", upd_help); return HEXCHAT_EAT_HEXCHAT; } else if (!g_ascii_strcasecmp ("SET", word[2])) @@ -200,7 +200,7 @@ print_version (char *word[], char *word_eol[], void *userdata) } else { - hexchat_printf (ph, upd_help); + hexchat_printf (ph, "%s", upd_help); return HEXCHAT_EAT_HEXCHAT; } }