From 90681eca07f20b2bbb0c5ea60e60806b6e1fb821 Mon Sep 17 00:00:00 2001 From: "alqahira%ardisson.org" Date: Thu, 24 Feb 2011 06:26:32 +0000 Subject: [PATCH] Bug 377392 - 'Copy Link Location' strips random characters from URLs copied to the clipboard. Patch by Rich Walsh , r=wuno, r=bzbarsky, a1.9.0.next=dveditz git-svn-id: svn://10.0.0.236/trunk@261969 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index 230c4a317da..edad9ff2d5c 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -4086,7 +4086,7 @@ NS_IMETHODIMP PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocation NS_ENSURE_ARG_POINTER(aNode); nsresult rv; nsAutoString anchorText; - static char strippedChars[] = {'\t','\r','\n'}; + static const char strippedChars[] = "\t\r\n"; // are we an anchor? nsCOMPtr anchor(do_QueryInterface(aNode));