summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/announce.c2
-rw-r--r--mbbsd/indict.c2
-rw-r--r--mbbsd/stuff.c9
3 files changed, 2 insertions, 11 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index aad29a92..2e74c9dd 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -113,7 +113,7 @@ a_searchtitle(menu_t * pm, int rev)
pm->page = pos - pos % p_lines;
a_loadname(pm);
}
- if (strstr_lower(pm->header[pos - pm->page].title, search_str))
+ if (strcasestr(pm->header[pos - pm->page].title, search_str))
return pos;
} while (pos != pm->now);
return pm->now;
diff --git a/mbbsd/indict.c b/mbbsd/indict.c
index 317fb5b0..ba1d84e8 100644
--- a/mbbsd/indict.c
+++ b/mbbsd/indict.c
@@ -126,7 +126,7 @@ use_dict(char *dict,char *database)
f = 1;
} else
f = 0;
- if (strstr_lower(lang, word)) {
+ if (strcasestr(lang, word)) {
if (f == 1)
lang[65] = '[';
outs(lang);
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 602c9b4b..c9f31e7d 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -138,15 +138,6 @@ str_lower(char *t, char *s)
} while (ch);
}
-void *
-strstr_lower(char *str, char *tag)
-{
- char buf[STRLEN];
-
- str_lower(buf, str);
- return strstr(buf, tag);
-}
-
/**
* 移除字串 buf 後端多餘的空白。
* @param buf