summaryrefslogtreecommitdiffstats
path: root/mbbsd/read.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-11 09:56:45 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-11 09:56:45 +0800
commit85f84ace2d70858b5c3dd7bcb96ea5a5f247812f (patch)
treeec11fb3bc6f1f9053369c4b13ed13de18a940208 /mbbsd/read.c
parentb54b6d5d4b176a137b6095024d3db80ede286555 (diff)
downloadpttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.tar
pttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.tar.gz
pttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.tar.bz2
pttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.tar.lz
pttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.tar.xz
pttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.tar.zst
pttbbs-85f84ace2d70858b5c3dd7bcb96ea5a5f247812f.zip
- search: fix wrong modification (should be file name part)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r--mbbsd/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 9e1dbb14..9137d304 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -220,7 +220,7 @@ getkeep(const char *s, int def_topline, int def_cursline)
static struct keepsome preserv_keepblock;
static struct keepsome *keeplist = &preserv_keepblock;
struct keeploc_t *p;
- unsigned key=DBCS_StringHash(s);
+ unsigned key=StringHash(s);
int i;
if (def_cursline >= 0) {
@@ -562,7 +562,7 @@ select_read(const keeploc_t * locmem, int sr_mode)
snprintf(genbuf, sizeof(genbuf), "%s%X.%X.%X",
first_select ? "SR.":p,
- sr_mode, (int)strlen(keyword), StringHash(keyword));
+ sr_mode, (int)strlen(keyword), DBCS_StringHash(keyword));
if( strlen(genbuf) > MAXPATHLEN - 50 )
return READ_REDRAW; // avoid overflow