Fix for bug 32407; transfer data from proper spot in input buffer when a portion is used to fill prior file buffer. r=dougt@netscape.com

This commit is contained in:
law%netscape.com 2000-03-21 08:47:43 +00:00
Родитель 398c127979
Коммит d4e2d78dfc
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -279,7 +279,7 @@ nsBufferedOutputStream::Write(const char *buf, PRUint32 count, PRUint32 *result)
while (count > 0) {
PRUint32 amt = PR_MIN(count, mFillPoint - mCursor);
if (amt > 0) {
nsCRT::memcpy(mBuffer + mCursor, buf, amt);
nsCRT::memcpy(mBuffer + mCursor, buf + written, amt);
written += amt;
count -= amt;
mCursor += amt;