compat: Fix strnstr implementation

This commit is contained in:
Hugo Beauzée-Luyssen 2015-12-09 18:04:38 +01:00
parent 4b827058f5
commit 56fd4ad559
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}