From 0beba6441cc34cb1fb7c0350882e3ae256b5309d Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 6 Feb 2005 08:22:08 +0000 Subject: 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 --- mbbsd/stuff.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'mbbsd/stuff.c') 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 -- cgit v1.2.3