fixes some MRJ build bustage resulting from my checkin for bug 124042

This commit is contained in:
darin%netscape.com 2002-03-06 09:24:15 +00:00
parent 3f6c384ade
commit ecf0b676e0

View File

@ -213,7 +213,7 @@ NS_NewURI(nsIURI* *result,
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
nsresult rv = theServiceManager->GetService(kIOServiceCID, NS_GET_IID(nsIIOService), (void**)&ioService);
if (rv == NS_OK)
rv = ioService->NewURI(spec, baseURI, result);
rv = ioService->NewURI(spec, nsnull, baseURI, result);
NS_RELEASE(ioService);
return rv;
}
@ -252,10 +252,9 @@ NS_METHOD MRJSecurityContext::Implies(const char* target, const char* action, PR
NS_METHOD
MRJSecurityContext::GetOrigin(char* buf, int len)
{
char* origin = nsnull;
if (mLocation && NS_SUCCEEDED(mLocation->GetPrePath(&origin))) {
::strncpy(buf, origin, len);
delete[] origin;
nsCAutoString origin;
if (mLocation && NS_SUCCEEDED(mLocation->GetUserPass(origin))) {
::strncpy(buf, origin.get(), len);
return NS_OK;
}
return NS_ERROR_FAILURE;