[Libreoffice-commits] core.git: vcl/workben

Caolán McNamara caolanm at redhat.com
Sun Dec 11 20:50:48 UTC 2016


 vcl/workben/wmffuzzer.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2b8f4cf1523cfa9c508b5f85f32090d1559ad04a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 11 20:48:49 2016 +0000

    wmffuzzer fix url
    
    Change-Id: I3861a04a02a17113d25c0fd065f8870b0ef020ca

diff --git a/vcl/workben/wmffuzzer.cxx b/vcl/workben/wmffuzzer.cxx
index b9b44b6..38ae528 100644
--- a/vcl/workben/wmffuzzer.cxx
+++ b/vcl/workben/wmffuzzer.cxx
@@ -31,7 +31,7 @@ namespace
 {
     void setFontConfigConf()
     {
-        osl::File aFontConfig("file::///tmp/wmffuzzerfonts.conf");
+        osl::File aFontConfig("file:///tmp/wmffuzzerfonts.conf");
         if (aFontConfig.open(osl_File_OpenFlag_Create | osl_File_OpenFlag_Write) == osl::File::E_None)
         {
             OUString uri;
@@ -52,6 +52,7 @@ namespace
             rtl::OString aConf = aBuffer.makeStringAndClear();
             sal_uInt64 aBytesWritten;
             aFontConfig.write(aConf.getStr(), aConf.getLength(), aBytesWritten);
+            assert(aBytesWritten == aConf.getLength());
         }
         setenv("FONTCONFIG_FILE", "/tmp/wmffuzzerfonts.conf", 0);
     }


More information about the Libreoffice-commits mailing list