Hardcoding PI length in GetProcessingInstruction().

This commit is contained in:
harishd%netscape.com 1999-08-03 00:12:22 +00:00
Родитель 549c525f9f
Коммит 67b7366c77
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -453,7 +453,7 @@ void GetProcessingInstruction(const nsString& aPIString, char* a_PI)
nsString temp;
PRInt32 theOffset = aPIString.FindCharInSet(theWS2,1);
aPIString.Mid(temp,1,theOffset);
temp.ToCString(a_PI,temp.Length());
temp.ToCString(a_PI,30);
}
return;
}

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

@ -453,7 +453,7 @@ void GetProcessingInstruction(const nsString& aPIString, char* a_PI)
nsString temp;
PRInt32 theOffset = aPIString.FindCharInSet(theWS2,1);
aPIString.Mid(temp,1,theOffset);
temp.ToCString(a_PI,temp.Length());
temp.ToCString(a_PI,30);
}
return;
}