Fixes bug 54081. Uploading large files (>50k). r=warren, sr=mscott.

This commit is contained in:
darin%netscape.com 2000-10-24 02:35:18 +00:00
Родитель 938babe38a
Коммит 3c271c19c7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1377,7 +1377,7 @@ nsresult nsSocketTransport::doWriteFromStream(PRUint32 *aCount)
*aCount = 0;
if (NS_SUCCEEDED(rv)) {
// Try to send the data to the network.
rv = nsWriteToSocket(nsnull, (void*)mSocketFD, mWriteBuffer, mWriteBufferIndex,
rv = nsWriteToSocket(nsnull, (void*)mSocketFD, mWriteBuffer + mWriteBufferIndex, 0,
mWriteBufferLength, aCount);
// Update the buffer index and length with the actual amount of data
// that was sent...