This commit is contained in:
cata%netscape.com 1999-09-02 20:23:49 +00:00
Родитель 9582ee162c
Коммит 31db4669be
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -356,7 +356,7 @@ nsresult nsDateTimeFormatMac::FormatTMTime(nsILocale* locale,
if(NS_SUCCEEDED(res) && decoder) {
PRInt32 unicharLength = 0;
PRInt32 srcLength = (PRInt32) PL_strlen(aBuffer);
res = decoder->Length(aBuffer, 0, srcLength, &unicharLength);
res = decoder->GetMaxLength(aBuffer, srcLength, &unicharLength);
PRUnichar *unichars = new PRUnichar [ unicharLength ];
if (nsnull != unichars) {

Просмотреть файл

@ -148,7 +148,7 @@ nsresult nsDateTimeFormatUnix::FormatTMTime(nsILocale* locale,
if (NS_SUCCEEDED(res) && decoder) {
PRInt32 unicharLength = 0;
PRInt32 srcLength = (PRInt32) PL_strlen(strOut);
res = decoder->Length(strOut, 0, srcLength, &unicharLength);
res = decoder->GetMaxLength(strOut, srcLength, &unicharLength);
PRUnichar *unichars = new PRUnichar [ unicharLength ];
if (nsnull != unichars) {

Просмотреть файл

@ -238,7 +238,7 @@ nsresult nsDateTimeFormatWin::ConvertToUnicode(const char *inString, const PRInt
if(NS_SUCCEEDED(res) && decoder) {
PRInt32 unicharLength = 0;
PRInt32 srcLength = inLen;
res = decoder->Length(inString, 0, srcLength, &unicharLength);
res = decoder->GetMaxLength(inString, srcLength, &unicharLength);
PRUnichar *unichars = outString;
if (nsnull != unichars) {