converted GetBuffer calls to ToNewCString for prunichar reasons

This commit is contained in:
valeski@netscape.com
1999-07-07 14:38:39 +00:00
parent afe14470b1
commit cf4b948f0d
4 changed files with 12 additions and 4 deletions

View File

@@ -334,8 +334,10 @@ void RobotSink::ProcessLink(const nsString& aLink)
rv = mDocumentURL->QueryInterface(nsIURI::GetIID(), (void**)&baseUri);
if (NS_FAILED(rv)) return;
const char *uriStr = aLink.GetBuffer();
char *uriStr = aLink.ToNewCString();
if (!uriStr) return;
rv = service->NewURI(uriStr, baseUri, &uri);
nsCRT::free(uriStr);
NS_RELEASE(baseUri);
if (NS_FAILED(rv)) return;