зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
398c127979
Коммит
d4e2d78dfc
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче