Commit 56fd4ad5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

compat: Fix strnstr implementation

parent 4b827058
......@@ -40,7 +40,7 @@ char * strnstr (const char *haystack, const char *needle, size_t len)
do
{
if( memcmp(haystack, needle, i) )
if( memcmp(haystack, needle, i) == 0 )
return (char*) haystack;
haystack++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment