mirror of https://code.videolan.org/videolan/vlc
compat: Fix strnstr implementation
This commit is contained in:
parent
4b827058f5
commit
56fd4ad559
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue