From: David Lawrence Ramsey Date: Sun, 7 Mar 2004 21:16:18 +0000 (+0000) Subject: fix error I made when porting over DB's refactored search code: the X-Git-Tag: v1.3.2~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2a464cb07d419c028c6ab96e57bec3db020cf51b;p=nano.git fix error I made when porting over DB's refactored search code: the strstr() call used in forward case-sensitive searches was using the wrong variable, which made all such searches fail git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1689 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/utils.c b/src/utils.c index c9600186..9744264f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -246,7 +246,7 @@ const char *strstrwrapper(const char *haystack, const char *needle, return revstrstr(haystack, needle, start); else #endif - return strstr(haystack, needle); + return strstr(start, needle); } #endif /* !DISABLE_SPELLER || !NANO_SMALL */ #ifndef NANO_SMALL