summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-06 16:22:08 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-06 16:22:08 +0800
commit0beba6441cc34cb1fb7c0350882e3ae256b5309d (patch)
treef1a344e0fff2b3d808e5308c88b0fa5d55dd0e05 /mbbsd/stuff.c
parentf5c7e0e313ec1616f33a610c873741ae73497529 (diff)
downloadpttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.tar
pttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.tar.gz
pttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.tar.bz2
pttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.tar.lz
pttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.tar.xz
pttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.tar.zst
pttbbs-0beba6441cc34cb1fb7c0350882e3ae256b5309d.zip
replace strstr_lower(), which cause buffer overflow with strcasestr()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2474 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c9
1 files changed, 0 insertions, 9 deletions
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