summaryrefslogtreecommitdiffstats
path: root/util/openticket.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-15 04:33:47 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-15 04:33:47 +0800
commit026329f85c6ebcbec743d526a0c46bd1c0aab8bb (patch)
tree6f76835cc10bfa49f943a50f5c3db9d36c6c2459 /util/openticket.c
parentb26fbc65ed9d7cbca50f8758712a9b9b6b2bf853 (diff)
downloadpttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.gz
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.bz2
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.lz
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.xz
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.tar.zst
pttbbs-026329f85c6ebcbec743d526a0c46bd1c0aab8bb.zip
warning: searchuser() getuser() API change, don't change query string implicitly.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/openticket.c')
-rw-r--r--util/openticket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/openticket.c b/util/openticket.c
index 4bd761a3..2257911b 100644
--- a/util/openticket.c
+++ b/util/openticket.c
@@ -157,7 +157,7 @@ int main(int argc, char **argv)
{
printf("恭喜 %-15s買了%9d 張 %s, 獲得 %d 枚P幣\n"
,userid, num, betname[mybet], money * num);
- if((uid=searchuser(userid))==0) continue;
+ if((uid=searchuser(userid, userid))==0) continue;
deumoney(uid, money * num);
sprintf(genbuf, BBSHOME "/home/%c/%s", userid[0], userid);
stampfile(genbuf, &mymail);