diff options
Diffstat (limited to 'src/memoserv.c')
-rw-r--r-- | src/memoserv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memoserv.c b/src/memoserv.c index 901e002eb..716bd41e0 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -54,7 +54,7 @@ void ms_init(void) */ void memoserv(User * u, char *buf) { - char *cmd, *s; + const char *cmd, *s; cmd = strtok(buf, " "); if (!cmd) { @@ -380,7 +380,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"); @@ -423,7 +423,7 @@ void rsend_notify(User * u, Memo * m, const char *chan) sprintf(text, fmt, chan); } else { fmt = getstring(na, MEMO_RSEND_NICK_MEMO_TEXT); - sprintf(text, fmt); + sprintf(text, "%s", fmt); } /* Send notification */ |