From 58a8a69939261eba49bb384e089c317f80e2a1ff Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Wed, 8 Nov 2000 00:53:30 +0000 Subject: [PATCH] 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 --- mozilla/xpfe/bootstrap/appleevents/nsAESpyglassSuiteHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpfe/bootstrap/appleevents/nsAESpyglassSuiteHandler.cpp b/mozilla/xpfe/bootstrap/appleevents/nsAESpyglassSuiteHandler.cpp index 217c6a73cfc..651702431e8 100644 --- a/mozilla/xpfe/bootstrap/appleevents/nsAESpyglassSuiteHandler.cpp +++ b/mozilla/xpfe/bootstrap/appleevents/nsAESpyglassSuiteHandler.cpp @@ -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);