From 809d45cba19c2f2a4684f150303301decef31341 Mon Sep 17 00:00:00 2001 From: Rich Walsh Date: Thu, 3 Feb 2011 12:11:12 -0500 Subject: [PATCH] Bug 377392 - 'Copy Link Location' strips random characters from URLs copied to the clipboard; r=wuno,bzbarsky a=dbaron --- layout/base/nsPresShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index 4f2e0de44534..6fa60bad09e2 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -4416,7 +4416,7 @@ nsresult PresShell::GetLinkLocation(nsIDOMNode* aNode, nsAString& aLocationStrin 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));