mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
bugfix for packing components - was failing to remove packed items from array
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6120 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ca768745db
commit
907ca9f867
1 changed files with 4 additions and 0 deletions
|
@ -1625,6 +1625,8 @@ static NSMapTable *tcpPortMap = 0;
|
|||
memcpy(b+h, [o bytes], l);
|
||||
pih->type = GSSwapHostI32ToBig(GSP_DATA);
|
||||
pih->length = GSSwapHostI32ToBig(l);
|
||||
[components removeObjectAtIndex: i--];
|
||||
c--;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1655,6 +1657,8 @@ static NSMapTable *tcpPortMap = 0;
|
|||
b += hLength;
|
||||
hLength += dLength;
|
||||
memcpy(b, [d bytes], dLength);
|
||||
[components removeObjectAtIndex: i--];
|
||||
c--;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue