diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-06 16:22:08 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-06 16:22:08 +0800 |
commit | 0beba6441cc34cb1fb7c0350882e3ae256b5309d (patch) | |
tree | f1a344e0fff2b3d808e5308c88b0fa5d55dd0e05 /mbbsd/announce.c | |
parent | f5c7e0e313ec1616f33a610c873741ae73497529 (diff) | |
download | pttbbs-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/announce.c')
-rw-r--r-- | mbbsd/announce.c | 2 |
1 files changed, 1 insertions, 1 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; |