зеркало из https://github.com/mozilla/pjs.git
Final part of bug 40027. r,a=waterson@netscape.com
This commit is contained in:
Родитель
8dcaa0b3b4
Коммит
6744bb5d65
|
@ -784,7 +784,7 @@ char* nsString::ToCString(char* aBuf, PRUint32 aBufLength,PRUint32 anOffset) con
|
|||
|
||||
CBufDescriptor theDescr(aBuf,PR_TRUE,aBufLength,0);
|
||||
nsCAutoString temp(theDescr);
|
||||
nsStr::StrAssign(temp, *this, anOffset, aBufLength-1);
|
||||
nsStr::StrAssign(temp, *this, anOffset, PR_MIN(mLength, aBufLength-1));
|
||||
temp.mStr=0;
|
||||
}
|
||||
return aBuf;
|
||||
|
|
|
@ -784,7 +784,7 @@ char* nsString::ToCString(char* aBuf, PRUint32 aBufLength,PRUint32 anOffset) con
|
|||
|
||||
CBufDescriptor theDescr(aBuf,PR_TRUE,aBufLength,0);
|
||||
nsCAutoString temp(theDescr);
|
||||
nsStr::StrAssign(temp, *this, anOffset, aBufLength-1);
|
||||
nsStr::StrAssign(temp, *this, anOffset, PR_MIN(mLength, aBufLength-1));
|
||||
temp.mStr=0;
|
||||
}
|
||||
return aBuf;
|
||||
|
|
|
@ -784,7 +784,7 @@ char* nsString::ToCString(char* aBuf, PRUint32 aBufLength,PRUint32 anOffset) con
|
|||
|
||||
CBufDescriptor theDescr(aBuf,PR_TRUE,aBufLength,0);
|
||||
nsCAutoString temp(theDescr);
|
||||
nsStr::StrAssign(temp, *this, anOffset, aBufLength-1);
|
||||
nsStr::StrAssign(temp, *this, anOffset, PR_MIN(mLength, aBufLength-1));
|
||||
temp.mStr=0;
|
||||
}
|
||||
return aBuf;
|
||||
|
|
Загрузка…
Ссылка в новой задаче