Fix bug in offset

This commit is contained in:
Richard Frith-Macdonald 2020-11-13 05:41:42 +00:00
parent 9794bece2e
commit 23d431234c

View file

@ -1133,7 +1133,8 @@ failure:
{
searchRange.length = countOther;
}
if (memcmp(&bytesSelf[0], &bytesOther[0], countOther) == 0)
if (memcmp(&bytesSelf[searchRange.location], &bytesOther[0],
countOther) == 0)
{
result = searchRange;
}