summaryrefslogtreecommitdiff
path: root/src/memoserv.c
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/memoserv.c
parent7dfc8e8ee8f5355429763eac70fe694bf947eca3 (diff)
Fixed make strict build and cleaned up some warnings
Diffstat (limited to 'src/memoserv.c')
-rw-r--r--src/memoserv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memoserv.c b/src/memoserv.c
index 9d987665b..92a71ecb3 100644
--- a/src/memoserv.c
+++ b/src/memoserv.c
@@ -385,7 +385,7 @@ static void new_memo_mail(NickCore * nc, Memo * m)
fprintf(mail->pipe, getstring2(NULL, MEMO_MAIL_TEXT2), m->sender,
m->number);
fprintf(mail->pipe, "\n\n");
- fprintf(mail->pipe, getstring2(NULL, MEMO_MAIL_TEXT3));
+ fprintf(mail->pipe, "%s", getstring2(NULL, MEMO_MAIL_TEXT3));
fprintf(mail->pipe, "\n\n");
fprintf(mail->pipe, "%s", m->text);
fprintf(mail->pipe, "\n");
@@ -425,10 +425,10 @@ void rsend_notify(User * u, Memo * m, const char *chan)
nick or channel */
if (chan) {
fmt = getstring(na, MEMO_RSEND_CHAN_MEMO_TEXT);
- sprintf(text, fmt, chan);
+ snprintf(text, sizeof(text), fmt, chan);
} else {
fmt = getstring(na, MEMO_RSEND_NICK_MEMO_TEXT);
- sprintf(text, fmt);
+ snprintf(text, sizeof(text), "%s", fmt);
}
/* Send notification */