From: David Lawrence Ramsey Date: Mon, 9 Jul 2007 22:57:07 +0000 (+0000) Subject: typo fixes X-Git-Tag: v2.0.7~75 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c8c59250c4110c5bb785900aea01e024ebc0c454;p=nano.git typo fixes git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4129 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/chars.c b/src/chars.c index 4f393a31..043522aa 100644 --- a/src/chars.c +++ b/src/chars.c @@ -603,7 +603,7 @@ char *nstrcasestr(const char *haystack, const char *needle) { assert(haystack != NULL && needle != NULL); - if (needle == '\0') + if (*needle == '\0') return (char *)haystack; for (; *haystack != '\0'; haystack++) { @@ -631,7 +631,7 @@ char *mbstrcasestr(const char *haystack, const char *needle) assert(haystack != NULL && needle != NULL); - if (needle == '\0') + if (*needle == '\0') return (char *)haystack; r_mb = charalloc(MB_CUR_MAX); @@ -693,7 +693,7 @@ char *revstrstr(const char *haystack, const char *needle, const char { assert(haystack != NULL && needle != NULL && rev_start != NULL); - if (needle == '\0') + if (*needle == '\0') return (char *)rev_start; for (; rev_start >= haystack; rev_start--) { @@ -718,7 +718,7 @@ char *revstrcasestr(const char *haystack, const char *needle, const char { assert(haystack != NULL && needle != NULL && rev_start != NULL); - if (needle == '\0') + if (*needle == '\0') return (char *)rev_start; for (; rev_start >= haystack; rev_start--) { @@ -748,7 +748,7 @@ char *mbrevstrcasestr(const char *haystack, const char *needle, const assert(haystack != NULL && needle != NULL && rev_start != NULL); - if (needle == '\0') + if (*needle == '\0') return (char *)rev_start; r_mb = charalloc(MB_CUR_MAX);