diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-15 00:39:59 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-15 00:39:59 +0000 |
commit | c01cd051c3bedf4502f698d54ea9a1d4c0aba5ff (patch) | |
tree | 949be7fb092c2f0c5d6d837b8e0facd2c2099a1f /src/core/cs_sendpass.c | |
parent | b6c2d8b52e7667b6250b01a633edbdca489dcdd8 (diff) |
Patch from Phenoix to correct a set of potential security holes in varargs usage.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2165 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_sendpass.c')
-rw-r--r-- | src/core/cs_sendpass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/cs_sendpass.c b/src/core/cs_sendpass.c index 8643cdeb5..ba9b8dd3f 100644 --- a/src/core/cs_sendpass.c +++ b/src/core/cs_sendpass.c @@ -49,7 +49,7 @@ class CommandCSSendPass : public Command if (!mail) return MOD_CONT; - fprintf(mail->pipe, getstring(founder, CHAN_SENDPASS_HEAD)); + fprintf(mail->pipe, "%s", getstring(founder, CHAN_SENDPASS_HEAD)); fprintf(mail->pipe, "\n\n"); fprintf(mail->pipe, getstring(founder, CHAN_SENDPASS_LINE_1), ci->name); @@ -57,9 +57,9 @@ class CommandCSSendPass : public Command fprintf(mail->pipe, getstring(founder, CHAN_SENDPASS_LINE_2), tmp_pass); fprintf(mail->pipe, "\n\n"); - fprintf(mail->pipe, getstring(founder, CHAN_SENDPASS_LINE_3)); + fprintf(mail->pipe, "%s", getstring(founder, CHAN_SENDPASS_LINE_3)); fprintf(mail->pipe, "\n\n"); - fprintf(mail->pipe, getstring(founder, CHAN_SENDPASS_LINE_4)); + fprintf(mail->pipe, "%s", getstring(founder, CHAN_SENDPASS_LINE_4)); fprintf(mail->pipe, "\n\n"); fprintf(mail->pipe, getstring(founder, CHAN_SENDPASS_LINE_5), NetworkName); |