Attachment data bugfixes related to fDataSize

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5357 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-11-14 00:22:30 +00:00
parent 018e96bd74
commit 2e4c9e2113

View File

@ -39,7 +39,7 @@ PortLink::PortLink(port_id port)
fSendCode=0;
fSendBuffer=new char[4096];
fSendPosition=8;
fDataSize=(int32*)fSendBuffer+sizeof(int32);
fDataSize=(int32*)(fSendBuffer+sizeof(int32));
*fDataSize=0;
}
@ -53,7 +53,7 @@ PortLink::PortLink( const PortLink &link )
fSendCode = 0;
fSendBuffer=new char[4096];
fSendPosition = 8;
fDataSize=(int32*)fSendBuffer+sizeof(int32);
fDataSize=(int32*)(fSendBuffer+sizeof(int32));
*fDataSize=0;
}