fix for bug 164577 - make the nsManifestLineReader include lengths from ParseLine() so that consumers can avoid calling strlen() on them

(tiny startup perf fix for reading in xpti.dat)
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128267 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
2002-08-27 18:32:12 +00:00
parent 3cdde98a28
commit 11549d59fc
6 changed files with 33 additions and 20 deletions

View File

@@ -87,11 +87,11 @@ void xptiInterfaceInfo::DEBUG_ShutdownNotification()
// static
xptiInterfaceEntry*
xptiInterfaceEntry::NewEntry(const char* name,
int nameLength,
const nsID& iid,
const xptiTypelib& typelib,
xptiWorkingSet* aWorkingSet)
{
size_t nameLength = PL_strlen(name);
void* place = XPT_MALLOC(aWorkingSet->GetStructArena(),
sizeof(xptiInterfaceEntry) + nameLength);
if(!place)