summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c5
1 files changed, 4 insertions, 1 deletions
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;