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:
Richard Frith-MacDonald 2000-02-26 18:10:16 +00:00
parent ca768745db
commit 907ca9f867

View file

@ -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
{