summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r--mbbsd/cal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 266bac25..4fad13ff 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -228,6 +228,7 @@ osong(void)
/* Jaky 超過 MAX_MOVIE 首歌就開始砍 */
nsongs = get_num_records(OSONGPATH "/.DIR", sizeof(mail));
if (nsongs > MAX_MOVIE) {
+ // XXX race condition
delete_range(OSONGPATH "/.DIR", 1, nsongs - MAX_MOVIE);
}
snprintf(genbuf, sizeof(genbuf), "%s says \"%s\" to %s.", sender, say, receiver);