diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-02 15:51:10 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-02 15:51:10 +0800 |
commit | 265caeebaf11f1ba546b8114c62356490c3b5444 (patch) | |
tree | 5bb94755c6b1cad4b23fec2364dea574ace63938 /mbbsd/brc.c | |
parent | 23d973bd097f2ec285b0d4b1a08dd13f48d5dec1 (diff) | |
download | pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.tar pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.tar.gz pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.tar.bz2 pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.tar.lz pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.tar.xz pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.tar.zst pttbbs-265caeebaf11f1ba546b8114c62356490c3b5444.zip |
- fix brc v2->v3 migration bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3609 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/brc.c')
-rw-r--r-- | mbbsd/brc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/brc.c b/mbbsd/brc.c index da18c2a0..0d93169b 100644 --- a/mbbsd/brc.c +++ b/mbbsd/brc.c @@ -284,6 +284,7 @@ read_brc2(void) *(brcbid_t*)cvt = bid; cvt += sizeof(brcbid_t); *(brcnbrd_t*)cvt = num;cvt += sizeof(brcnbrd_t); + for (; num > 0; num--) { read(fd, &create, sizeof(create)); @@ -295,6 +296,7 @@ read_brc2(void) close(fd); // now cvthead is ready for v3. + sz3 = cvt - cvthead; brc_get_buf(sz3); brc_size = sz3; memcpy(brc_buf, cvthead, sz3); |