Progress.
git-svn-id: svn://10.0.0.236/trunk@1189 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
10
mozilla/network/cache/nu/src/nsCacheModule.cpp
vendored
10
mozilla/network/cache/nu/src/nsCacheModule.cpp
vendored
@@ -16,9 +16,13 @@
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include <xp_core.h>
|
||||
#include <xp_str.h>
|
||||
|
||||
#include "nsCacheModule.h"
|
||||
#include "nsCacheTrace.h"
|
||||
|
||||
|
||||
/*
|
||||
* nsCacheModule
|
||||
*
|
||||
@@ -55,10 +59,12 @@ nsCacheModule::~nsCacheModule()
|
||||
const char* nsCacheModule::Trace() const
|
||||
{
|
||||
char linebuffer[128];
|
||||
char* total = 0;
|
||||
char* total;
|
||||
|
||||
sprintf(linebuffer, "nsCacheModule: Objects = %d\n", Entries());
|
||||
APPEND(linebuffer);
|
||||
|
||||
total = new char[strlen(linebuffer) + 1];
|
||||
strcpy(total, linebuffer);
|
||||
|
||||
return total;
|
||||
}
|
||||
Reference in New Issue
Block a user