зеркало из https://github.com/mozilla/pjs.git
back out bad fix. agreed by ben and tao chang it back to 1.2
This commit is contained in:
Родитель
e3e99449f3
Коммит
336413eb3b
|
@ -105,17 +105,8 @@ NS_IMETHODIMP nsUEscapeToUnicode::Convert(
|
|||
mState++;
|
||||
mData=0;
|
||||
} else {
|
||||
if((destPtr+2) >= destEnd) {
|
||||
// notice the data in mBuffer is stored in reversed order
|
||||
mBufferLen = 2;
|
||||
mBuffer[1] = (PRUnichar) '\\';
|
||||
mBuffer[0] = (PRUnichar)*srcPtr;
|
||||
mState=0;
|
||||
goto error;
|
||||
}
|
||||
*destPtr++ = (PRUnichar) '\\';
|
||||
mState =0;
|
||||
*destPtr++ = (PRUnichar)*srcPtr;
|
||||
mState=0;
|
||||
}
|
||||
break;
|
||||
case 2: // got \u
|
||||
|
|
Загрузка…
Ссылка в новой задаче