Fix for bug 48887 -- OpenURL apple event drops the last character of the URL. r=beard, sr=scc. Trunk checkin.

git-svn-id: svn://10.0.0.236/trunk@82399 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com 2000-11-08 00:53:30 +00:00
parent 41b020b9c1
commit 58a8a69939

View File

@ -147,7 +147,7 @@ void AESpyglassSuiteHandler::HandleOpenURLEvent(const AppleEvent *appleEvent, Ap
char* urlString = (char *)nsMemory::Alloc(dataSize + 1);
ThrowIfNil(urlString);
directParameter.GetCString(urlString, dataSize);
directParameter.GetCString(urlString, dataSize + 1);
nsMacCommandLine& cmdLine = nsMacCommandLine::GetMacCommandLine();
cmdLine.DispatchURLToNewBrowser(urlString);