From 677d6ce6efc201e72699537d6fd7674e1a423d23 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 11 May 2012 16:42:28 +0000 Subject: fix clang format string warning git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5680 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/mail.c b/pttbbs/mbbsd/mail.c index d47e41a6..6a56d1af 100644 --- a/pttbbs/mbbsd/mail.c +++ b/pttbbs/mbbsd/mail.c @@ -201,7 +201,7 @@ mail_log2id_text(const char *id, const char *title, const char *message, strlcpy(mhdr.owner, owner, sizeof(mhdr.owner)); strlcpy(mhdr.title, title, sizeof(mhdr.title)); mhdr.filemode = newmail ? 0 : FILE_READ; - log_filef(dst, LOG_CREAT, message); + log_filef(dst, LOG_CREAT, "%s", message); sethomedir(dirf, id); append_record(dirf, &mhdr, sizeof(mhdr)); -- cgit v1.2.3