mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
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
Block a user