summaryrefslogtreecommitdiffstats
path: root/mbbsd/gamble.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-27 08:53:03 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-27 08:53:03 +0800
commit3e774d4829229f4132e3b6895b572a117f60c99d (patch)
tree2f94783d37a64eb4b32ffe16b4b8b60855a63239 /mbbsd/gamble.c
parentfc4a128e1360ba9b3098656b35721323f173838f (diff)
downloadpttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.tar
pttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.tar.gz
pttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.tar.bz2
pttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.tar.lz
pttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.tar.xz
pttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.tar.zst
pttbbs-3e774d4829229f4132e3b6895b572a117f60c99d.zip
- code clean up
- enlarge buffer size to prevent overflow git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4030 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r--mbbsd/gamble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index 2f3e2dd7..b7fe8d5a 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -140,7 +140,7 @@ ticket(int bid)
{
int ch, end = 0;
int n, price, count; /* 購買張數、單價、選項數 */
- char path[128], fn_ticket[128];
+ char path[128], fn_ticket[PATHLEN];
char betname[MAX_ITEM][MAX_ITEM_LEN];
boardheader_t *bh = NULL;