summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-04 01:12:52 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-04 01:12:52 +0800
commitdd335b471838fa45d85838bec7251b9a7525735a (patch)
tree48fba1059e8c1a91ebcd42e34c428bcbec83b765 /mbbsd/talk.c
parent974c4a844dbb4cd4589fee6a025469e30e0582e5 (diff)
downloadpttbbs-dd335b471838fa45d85838bec7251b9a7525735a.tar
pttbbs-dd335b471838fa45d85838bec7251b9a7525735a.tar.gz
pttbbs-dd335b471838fa45d85838bec7251b9a7525735a.tar.bz2
pttbbs-dd335b471838fa45d85838bec7251b9a7525735a.tar.lz
pttbbs-dd335b471838fa45d85838bec7251b9a7525735a.tar.xz
pttbbs-dd335b471838fa45d85838bec7251b9a7525735a.tar.zst
pttbbs-dd335b471838fa45d85838bec7251b9a7525735a.zip
fix sig devide by zero bug,
query user -> cuser.money git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2885 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 039a75ef..58d3331e 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -399,7 +399,7 @@ my_query(const char *uident)
muser.userid,
muser.username,
(int)(26 - strlen(muser.userid) - strlen(muser.username)), "",
- money_level(cuser.money));
+ money_level(muser.money));
if (uentp && ((fri_stat & HFM && !uentp->invisible) || strcmp(muser.userid,cuser.userid) == 0))
prints(" ($%d)", muser.money);
outc('\n');