diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-01 15:56:36 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-01 15:56:36 +0800 |
commit | 316ea947ba533be41523eda9c0c112405ec4a086 (patch) | |
tree | 603f5ef71b15c1bd1168fa5e3811dca4f0e126ee | |
parent | d89cf5b0bc9c9ea0d36d8d128e87501c836d49f5 (diff) | |
download | pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.tar pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.tar.gz pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.tar.bz2 pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.tar.lz pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.tar.xz pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.tar.zst pttbbs-316ea947ba533be41523eda9c0c112405ec4a086.zip |
wrong fopen mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2217 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/gamble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index d0e651e0..0566861a 100644 --- a/mbbsd/gamble.c +++ b/mbbsd/gamble.c @@ -106,7 +106,7 @@ append_ticket_record(char *direct, int ch, int n, int count) } snprintf(genbuf, sizeof(genbuf), "%s/" FN_TICKET_RECORD, direct); - if ((fp = fopen(genbuf, "w+"))) { + if ((fp = fopen(genbuf, "r+"))) { flock(fileno(fp), LOCK_EX); |