From 3a97d196f9744a75a715cf3bc8bd0d36683e4ece Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 7 Sep 2010 18:39:57 -0400 Subject: Fixed make strict build and cleaned up some warnings --- src/memoserv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/memoserv.c') 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 */ -- cgit