This commit is contained in:
scc%netscape.com 2000-05-12 23:09:28 +00:00
parent 4b1f539a77
commit cf127bfa10

View File

@ -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;