summary refs log tree commit diff stats
path: root/plugins/sysinfo
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-09-25 00:54:38 -0700
committerArnavion <arnavion@gmail.com>2014-09-25 00:54:38 -0700
commite8fb2dde56e93c1c2641ae99f8b1988352270f55 (patch)
treef12ef59b5473ac5a1e7850267fcb77513ffb4448 /plugins/sysinfo
parent25c6638ce4f16f5298c93e1143cde77b636193c5 (diff)
Fixed instances of hexchat_printf that unsafely used a string parameter as a format string.
Fixes #1153
Diffstat (limited to 'plugins/sysinfo')
-rw-r--r--plugins/sysinfo/xsys.c4
1 files changed, 2 insertions, 2 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;
 	}
 }