summaryrefslogtreecommitdiffstats
path: root/mbbsd/read.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-22 20:53:12 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-22 20:53:12 +0800
commitb84f597ee5c156f741dd3aabfc8b18e0f997e684 (patch)
tree79870a9706103e821d697d34ce77c14b13252e53 /mbbsd/read.c
parent21295b3ae2d324312c343898db97f53b989d48b4 (diff)
downloadpttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.tar
pttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.tar.gz
pttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.tar.bz2
pttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.tar.lz
pttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.tar.xz
pttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.tar.zst
pttbbs-b84f597ee5c156f741dd3aabfc8b18e0f997e684.zip
fix malfunction of '[', ']', '=' keys on article with long title
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2207 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r--mbbsd/read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index cb48b594..0a1e7197 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -278,12 +278,12 @@ thread(keeploc_t * locmem, int stypen)
get_record_keep(currdirect, &fh, sizeof(fileheader_t), new_ln, &fd);
if( stypen & RS_TITLE ){
if( stypen & RS_FIRST ){
- if( !strcmp(fh.title, key) )
+ if( !strncmp(fh.title, key, PROPER_TITLE_LEN) )
break;
- else if( !strcmp(&fh.title[4], key) )
+ else if( !strncmp(&fh.title[4], key, PROPER_TITLE_LEN) )
amatch = new_ln;
}
- else if( !strcmp(subject(fh.title), key) )
+ else if( !strncmp(subject(fh.title), key, PROPER_TITLE_LEN) )
break;
}
else if( stypen & RS_NEWPOST ){