summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-15 23:05:23 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-15 23:05:23 +0000
commit8cc5b194d4adbe5e231ddf717cef5810fcc5a88b (patch)
tree6e633c31373b50df6d29d1a60fe5a6d5518a4efd /src/core
parent89e63ed395b29061c03b4c82314e87a77dbea4cf (diff)
Correct a set of potential security holes in varags usage in ns_register, patch from Phenoix.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2168 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_register.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index a899ca760..dc59caecb 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -499,15 +499,15 @@ int do_sendregmail(User *u, NickRequest *nr)
mail = MailRegBegin(u, nr, buf, s_NickServ);
if (!mail)
return -1;
- fprintf(mail->pipe, getstring(NICK_REG_MAIL_HEAD));
+ fprintf(mail->pipe, "%s", getstring(NICK_REG_MAIL_HEAD));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_1), nr->nick);
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_2), s_NickServ, nr->passcode);
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_3));
+ fprintf(mail->pipe, "%s", getstring(NICK_REG_MAIL_LINE_3));
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_4));
+ fprintf(mail->pipe, "%s", getstring(NICK_REG_MAIL_LINE_4));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(NICK_REG_MAIL_LINE_5), NetworkName);
fprintf(mail->pipe, "\n.\n");