Fixed issue #222.

This commit is contained in:
Бранимир Караџић
2019-11-24 19:27:13 -08:00
parent 822b66d91f
commit 1680ef418a
2 changed files with 14 additions and 11 deletions

View File

@@ -420,18 +420,9 @@ namespace bx
}
}
// Set pointers.
const char* string = ptr;
const char* search = _find;
// Start comparing.
while (fn(*string++) == fn(*search++) )
if (0 == strCmp<fn>(ptr, _findMax, _find, _findMax) )
{
// If end of the 'search' string is reached, all characters match.
if ('\0' == *search)
{
return ptr;
}
return ptr;
}
}