NECKO Only!! Don't call GetBuffer on an nsString as it returns null for unicode strings. use nsCAutoString

This commit is contained in:
mscott%netscape.com 1999-07-21 06:51:45 +00:00
parent 618e0455ce
commit 4b40e8684c

View File

@ -287,8 +287,7 @@ rdf_MakeAbsoluteURI(nsIURI* aURL, nsString& aURI)
if (NS_FAILED(rv)) return rv;
char *absUrlStr = nsnull;
const char *urlSpec = aURI.GetBuffer();
rv = service->MakeAbsolute(urlSpec, baseUri, &absUrlStr);
rv = service->MakeAbsolute(nsCAutoString(aURI), baseUri, &absUrlStr);
NS_RELEASE(baseUri);
result = absUrlStr;
delete [] absUrlStr;