summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-01 12:03:59 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-01 12:03:59 +0800
commitdd37dc8252cf8bd0fef546c13514513126c1458e (patch)
tree804df010bb27986d8cc3fe92e3a7c8e5cc8eddca
parenta1f095ed466c04ed003363810590c19cca2cacc3 (diff)
downloadpttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.tar
pttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.tar.gz
pttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.tar.bz2
pttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.tar.lz
pttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.tar.xz
pttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.tar.zst
pttbbs-dd37dc8252cf8bd0fef546c13514513126c1458e.zip
fix cursor problem for select_read
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1905 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index ea3c6305..ea8dd169 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -407,7 +407,8 @@ select_read(keeploc_t * locmem, int sr_mode)
strcmp(subject(fhs[i].title), keyword))
continue;
++count;
- fhs[i].money = reference | FHR_REFERENCE;
+ if(p == NULL)
+ fhs[i].money = reference | FHR_REFERENCE;
write(fd, &fhs[i], sizeof(fileheader_t));
}
} // end while