summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-05 04:02:29 +0800
committerjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-05 04:02:29 +0800
commit7ab1897759f9faaea285b81c5ec8258c5a75acb7 (patch)
tree67e46576ed96bae8465a3c2a1778d8703dfc955d
parent63b324b6a0b428f59b63056f4cc6ae1bca69c3f7 (diff)
downloadpttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.tar
pttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.tar.gz
pttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.tar.bz2
pttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.tar.lz
pttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.tar.xz
pttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.tar.zst
pttbbs-7ab1897759f9faaea285b81c5ec8258c5a75acb7.zip
fixed the bugs in reload_fcache
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1923 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 51b9ce90..db859000 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -877,7 +877,7 @@ reload_fcache(void)
buf[0] != '\n') {
sscanf(buf, "%s", SHM->domain[SHM->top]); // XXX check buffer size
po = buf + strlen(SHM->domain[SHM->top]);
- while (*po == ' ')
+ while (*po == ' ' || *po == '\t')
po++;
strncpy(SHM->replace[SHM->top], po, 49);
SHM->replace[SHM->top]