From abe27ec1ce52bb620dac85541eaf77de2dd54f71 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 13 Nov 2004 20:47:53 +0000 Subject: Fix FMR. Fixes bug #158202. 2004-11-13 Christian Persch * embed/mozilla/MozillaPrivate.cpp: Fix FMR. Fixes bug #158202. --- embed/mozilla/MozillaPrivate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'embed/mozilla') diff --git a/embed/mozilla/MozillaPrivate.cpp b/embed/mozilla/MozillaPrivate.cpp index 74afc615e..58789dca4 100644 --- a/embed/mozilla/MozillaPrivate.cpp +++ b/embed/mozilla/MozillaPrivate.cpp @@ -25,6 +25,7 @@ #include #include #include +#include /* IMPORTANT. Put only code that use internal mozilla strings (nsAutoString for * example) in this file. Note that you cannot use embed strings here, @@ -65,8 +66,8 @@ MozillaPrivate::GetPrinterList () rv = printer->GetData(data); NS_ENSURE_SUCCESS(rv, nsnull); - const char *name = NS_ConvertUCS2toUTF8 (data).get(); - printers = g_list_prepend (printers, g_strdup (name)); + const nsACString& cData = NS_ConvertUCS2toUTF8 (data); + printers = g_list_prepend (printers, g_strdup (PromiseFlatCString (cData).get())); } return g_list_reverse (printers); -- cgit v1.2.3