From: Chris Allegretta Date: Thu, 28 Feb 2002 00:48:47 +0000 (+0000) Subject: - utils.c:strcasestr() - Renamed to stristr since strcasestr has not been confirmed... X-Git-Tag: v1.0.9~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f444ae2438b946a8c8010e7b3dd12d75d4586892;p=nano.git - utils.c:strcasestr() - Renamed to stristr since strcasestr has not been confirmed to be detected properly on various Linux systems git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@1088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 886170ae..43d0884f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ CVS code - end key code (fixes BUG #69). bottombars(), onekey() - Make bottom list dynamic with screen size (Guus Sliepen & Chris). +- utils.c: + strcasestr() + - Renamed to stristr since strcasestr has not been confirmed to + be detected properly on various Linux systems. - THANKS: - Added missing entry for Eivind Kjørstad. - po/no.po: diff --git a/proto.h b/proto.h index 24e749d2..b8ae0750 100644 --- a/proto.h +++ b/proto.h @@ -65,7 +65,7 @@ extern toggle toggles[TOGGLE_LEN]; /* Programs we want available */ -char *strcasestr(char *haystack, char *needle); +char *stristr(char *haystack, char *needle); char *strstrwrapper(char *haystack, char *needle); int search_init(int replacing); int renumber(filestruct * fileptr); diff --git a/utils.c b/utils.c index 0c0e9648..9af8ac48 100644 --- a/utils.c +++ b/utils.c @@ -50,7 +50,7 @@ void lowercase(char *src) /* This is now mutt's version (called mutt_stristr) because it doesn't use memory allocation to do a simple search (yuck). */ -char *strcasestr(char *haystack, char *needle) +char *stristr(char *haystack, char *needle) { const char *p, *q; @@ -83,7 +83,7 @@ char *strstrwrapper(char *haystack, char *needle) if (ISSET(CASE_SENSITIVE)) return strstr(haystack, needle); else - return strcasestr(haystack, needle); + return stristr(haystack, needle); } /* Thanks BG, many ppl have been asking for this... */