mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
fix bug #36316
This commit is contained in:
parent
4b1f539a77
commit
cf127bfa10
@ -87,7 +87,7 @@ nsresult StringUnicharInputStream::Read(PRUnichar* aBuf,
|
||||
if (amount > aCount) {
|
||||
amount = aCount;
|
||||
}
|
||||
nsCRT::memcpy(aBuf + aOffset, us + mPos, sizeof(PRUnichar) * amount);
|
||||
nsCRT::memcpy(aBuf, us + mPos, sizeof(PRUnichar) * amount);
|
||||
mPos += amount;
|
||||
*aReadCount = amount;
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user