diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-03-26 10:47:21 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-03-26 10:47:21 +0800 |
commit | 6a049ab7d7709f5ff8c326915c79faa1106324c8 (patch) | |
tree | 3d8d8f7b26d5fe51be57ea902df2f685d8a8615a /mbbsd/cal.c | |
parent | bf4070a6faae8677eb551afb430dd3d3f0e04a66 (diff) | |
download | pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.tar pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.tar.gz pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.tar.bz2 pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.tar.lz pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.tar.xz pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.tar.zst pttbbs-6a049ab7d7709f5ff8c326915c79faa1106324c8.zip |
not necessary to dereference
mark race
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3495 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 1 |
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); |