diff --git a/toolkit/components/downloads/src/nsDownloadManager.cpp b/toolkit/components/downloads/src/nsDownloadManager.cpp index f50566c1f6ea..f7ff4c82b7f1 100644 --- a/toolkit/components/downloads/src/nsDownloadManager.cpp +++ b/toolkit/components/downloads/src/nsDownloadManager.cpp @@ -1647,8 +1647,8 @@ nsDownloadsDataSource::GetTarget(nsIRDFResource* aSource, nsIRDFResource* aPrope fph->GetURLSpecFromFile(lf, fileURL); nsAutoString iconURL(NS_LITERAL_STRING("moz-icon://")); - nsAutoString pathTemp; pathTemp.AssignWithConversion(fileURL); - iconURL += pathTemp + NS_LITERAL_STRING("?size=32"); + AppendUTF8toUTF16(fileURL, iconURL); + iconURL.AppendLiteral("?size=32"); nsCOMPtr result; gRDFService->GetUnicodeResource(iconURL, getter_AddRefs(result));