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:
parent
41b020b9c1
commit
58a8a69939
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user