summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-07 18:39:57 -0400
committerAdam <Adam@anope.org>2010-09-07 18:39:57 -0400
commit3a97d196f9744a75a715cf3bc8bd0d36683e4ece (patch)
tree2774f41c34fdd2e5ce5a84262de2b42f665e5382 /src/core
parent7dfc8e8ee8f5355429763eac70fe694bf947eca3 (diff)
Fixed make strict build and cleaned up some warnings
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cs_sendpass.c6
-rw-r--r--src/core/ns_register.c6
-rw-r--r--src/core/ns_sendpass.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/core/cs_sendpass.c b/src/core/cs_sendpass.c
index 90bab7a12..a0c7b8a59 100644
--- a/src/core/cs_sendpass.c
+++ b/src/core/cs_sendpass.c
@@ -95,7 +95,7 @@ int do_sendpass(User * u)
if (!mail)
return MOD_CONT;
- fprintf(mail->pipe, getstring2(founder, CHAN_SENDPASS_HEAD));
+ fprintf(mail->pipe, "%s", getstring2(founder, CHAN_SENDPASS_HEAD));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring2(founder, CHAN_SENDPASS_LINE_1),
ci->name);
@@ -103,9 +103,9 @@ int do_sendpass(User * u)
fprintf(mail->pipe, getstring2(founder, CHAN_SENDPASS_LINE_2),
tmp_pass);
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring2(founder, CHAN_SENDPASS_LINE_3));
+ fprintf(mail->pipe, "%s", getstring2(founder, CHAN_SENDPASS_LINE_3));
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring2(founder, CHAN_SENDPASS_LINE_4));
+ fprintf(mail->pipe, "%s", getstring2(founder, CHAN_SENDPASS_LINE_4));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring2(founder, CHAN_SENDPASS_LINE_5),
NetworkName);
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 9db168f9c..77080bdd5 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -472,16 +472,16 @@ int do_sendregmail(User * u, NickRequest * nr)
if (!mail) {
return -1;
}
- fprintf(mail->pipe, getstring2(NULL, NICK_REG_MAIL_HEAD));
+ fprintf(mail->pipe, "%s", getstring2(NULL, NICK_REG_MAIL_HEAD));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring2(NULL, NICK_REG_MAIL_LINE_1), nr->nick);
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring2(NULL, NICK_REG_MAIL_LINE_2), s_NickServ,
nr->passcode);
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring2(NULL, NICK_REG_MAIL_LINE_3));
+ fprintf(mail->pipe, "%s", getstring2(NULL, NICK_REG_MAIL_LINE_3));
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring2(NULL, NICK_REG_MAIL_LINE_4));
+ fprintf(mail->pipe, "%s", getstring2(NULL, NICK_REG_MAIL_LINE_4));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring2(NULL, NICK_REG_MAIL_LINE_5),
NetworkName);
diff --git a/src/core/ns_sendpass.c b/src/core/ns_sendpass.c
index 3916155dc..fc80895dc 100644
--- a/src/core/ns_sendpass.c
+++ b/src/core/ns_sendpass.c
@@ -92,16 +92,16 @@ int do_sendpass(User * u)
if (!mail)
return MOD_CONT;
- fprintf(mail->pipe, getstring(na, NICK_SENDPASS_HEAD));
+ fprintf(mail->pipe, "%s", getstring(na, NICK_SENDPASS_HEAD));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_1), na->nick);
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_2),
tmp_pass);
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_3));
+ fprintf(mail->pipe, "%s", getstring(na, NICK_SENDPASS_LINE_3));
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_4));
+ fprintf(mail->pipe, "%s", getstring(na, NICK_SENDPASS_LINE_4));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, getstring(na, NICK_SENDPASS_LINE_5),
NetworkName);