]> git.wh0rd.org Git - nano.git/commitdiff
fix error I made when porting over DB's refactored search code: the
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 7 Mar 2004 21:16:18 +0000 (21:16 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 7 Mar 2004 21:16:18 +0000 (21:16 +0000)
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

src/utils.c

index c96001866cfbbf37f983b194d3cfa9d49ae2aae2..9744264f43ef9b4c644eab6b0606e907ac8a6e4a 100644 (file)
@@ -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