mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Fix bug in offset
This commit is contained in:
parent
9794bece2e
commit
23d431234c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue