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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user