diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:03:07 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:03:07 +0000 |
| commit | f25ca483fa91d87d1b96a82101bb1f838ac47f1a (patch) | |
| tree | 36f48316aa5db95da61cae70e0d7d3086cd21035 /src/memoserv.c | |
| parent | 295599ab2cd284de3a777994d68dfef857874a21 (diff) | |
Various small fixes, part #2.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1670 5417fbe8-f217-4b02-8779-1006273d7864
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 */ |
