From e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2 Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 7 Dec 2003 11:48:42 +0000 Subject: use open() instead of fopen() in log_file() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1405 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/announce.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mbbsd/announce.c') diff --git a/mbbsd/announce.c b/mbbsd/announce.c index c316db20..f63c5730 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -914,7 +914,10 @@ a_menu(char *maintitle, char *path, int lastlevel) Fexit = 1; if (currstat == OSONG) { /* XXX: 只選歌未點歌可灌排行榜 */ - log_file(FN_USSONG, fhdr->title); + char buf[128]; + snprintf(buf, sizeof(buf), + "%s\n", fhdr->title); + log_file(FN_USSONG, buf, 1); } free(me.header); return FULLUPDATE; -- cgit v1.2.3