Fixing build warnings. Step 2: switch to use new method from the interface.

git-svn-id: svn://10.0.0.236/trunk@45546 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cata%netscape.com
1999-09-01 22:50:50 +00:00
parent bb8a3ad96b
commit 82b73ce0cc
11 changed files with 16 additions and 16 deletions

View File

@@ -255,7 +255,7 @@ PRBool nsScanner::Append(const char* aBuffer, PRUint32 aLen){
do {
PRInt32 srcLength = aLen;
PRInt32 unicharLength = unicharBufLen;
res = mUnicodeDecoder->Convert(unichars, 0, &unicharLength,aBuffer, 0, &srcLength );
res = mUnicodeDecoder->Convert(aBuffer, &srcLength, unichars, &unicharLength);
unichars[unicharLength]=0; //add this since the unicode converters can't be trusted to do so.