1
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:
Hugo Beauzée-Luyssen 2015-12-09 18:04:38 +01:00
parent 4b827058f5
commit 56fd4ad559

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