Bug 269254: fix bug in utf16ToUcs4()'s returned length, patch by Ryan Jones <sciguyryan+bugzilla@gmail.com>, r+sr=biesi
git-svn-id: svn://10.0.0.236/trunk@217051 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -308,7 +308,7 @@ static void utf16ToUcs4(const nsAString& in, PRUint32 *out, PRUint32 outBufLen,
|
||||
if (i >= outBufLen) {
|
||||
NS_ERROR("input too big, the result truncated");
|
||||
out[outBufLen-1] = (PRUint32)'\0';
|
||||
*outLen = i;
|
||||
*outLen = outBufLen;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user