summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 18:29:10 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 18:29:10 +0800
commit661c66818ba37161c4626e0b5026fd6fe30a89a8 (patch)
tree6ad0448e2d9cb4421cdf16860c5841d6be46df9d /mbbsd/cal.c
parente563476440b601acfe2918c6aeb56fe3dd60be24 (diff)
downloadpttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.tar
pttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.tar.gz
pttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.tar.bz2
pttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.tar.lz
pttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.tar.xz
pttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.tar.zst
pttbbs-661c66818ba37161c4626e0b5026fd6fe30a89a8.zip
check if uid is in range in deumoney(). or damage SHM.
this checking should be done in upper layer or users could not get the error messages. so mark as TODO. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2499 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r--mbbsd/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 34eb3ea7..0e2a48c0 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -374,7 +374,7 @@ p_give()
tax = give_tax(money);
if (money - tax <= 0)
return 0; /* 繳完稅就沒錢給了 */
- deumoney(searchuser(id), money - tax); // FIXME if searchuser(id) return 0
+ deumoney(searchuser(id), money - tax); // TODO if searchuser(id) return 0
demoney(-money);
log_file(FN_MONEY, LOG_CREAT | LOG_VF, "%s\t給%s\t%d\t%s",
cuser.userid, id, money - tax, ctime4(&now));