Fix error sending NSPortMessage objects which have not reserved space in their first component.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25811 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-12-31 20:38:50 +00:00
parent 1957e4a9b4
commit dcf09f1c31
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2007-12-31 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSMessagePort.m:
* Source/NSSocketPort.m:
Fix error sending NSPortMessage objects which have not reserved
space in their first component.
2007-12-26 Richard Frith-Macdonald <rfm@gnu.org>
* config/config.joinable.m: test for joinable threads.

View file

@ -1843,6 +1843,7 @@ typedef struct {
* a maximum of NETBLOCK bytes. This is to try to get a single,
* efficient write operation if possible.
*/
c = [components count];
for (i = 1; i < c; i++)
{
id o = [components objectAtIndex: i];

View file

@ -2384,6 +2384,7 @@ static Class tcpPortClass;
* a maximum of NETBLOCK bytes. This is to try to get a single,
* efficient write operation if possible.
*/
c = [components count];
for (i = 1; i < c; i++)
{
id o = [components objectAtIndex: i];