diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-03 19:20:13 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-03 19:20:13 +0800 |
commit | 434a19afd2bde5d0e8759d94d83d52dbf1544798 (patch) | |
tree | 7b762f4c285da0084d16860ff6daeab66e43d555 | |
parent | 3cbb9cec2bdefcc01f439793681adf51f3e207b4 (diff) | |
download | pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.tar pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.tar.gz pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.tar.bz2 pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.tar.lz pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.tar.xz pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.tar.zst pttbbs-434a19afd2bde5d0e8759d94d83d52dbf1544798.zip |
fix bug in select_mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1080 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index cc5f480a..9cc2c398 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.26 2003/07/04 11:37:02 victor Exp $ */ +/* $Id$ */ #include "bbs.h" static fileheader_t *headers = NULL; @@ -515,8 +515,8 @@ select_read(keeploc_t * locmem, int sr_mode) tag = fh.title; temp = strstr(tag, query); if (temp == NULL || temp != tag) { - write(fr, &fh, size); fh.money = reference | FHR_REFERENCE; + write(fr, &fh, size); } } case RS_AUTHOR: @@ -524,8 +524,8 @@ select_read(keeploc_t * locmem, int sr_mode) ++reference; tag = fh.owner; if (strcasestr(tag, query)) { - write(fr, &fh, size); fh.money = reference | FHR_REFERENCE; + write(fr, &fh, size); } } break; @@ -533,8 +533,8 @@ select_read(keeploc_t * locmem, int sr_mode) while (read(fd, &fh, size) == size) { ++reference; if (fh.filemode & FILE_MARKED) { - write(fr, &fh, size); fh.money = reference | FHR_REFERENCE; + write(fr, &fh, size); } } break; |