Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Mon, Oct 4, 2010 at 4:57 AM, Michael Meeks <michael.meeks@novell.com> wrote:
Hi Norbert,

On Sun, 2010-10-03 at 14:24 -0500, Norbert Thiebaud wrote:
[PATCH] printf without format considered harmful

       Great patch :-) good to know that that is cleaned up globally. Glad to
see Cedric committed it already.

-                printf( ByteString( aPrintMsg, RTL_TEXTENCODING_UTF8
).GetBuffer() );
+                printf( "%s", ByteString( aPrintMsg,
RTL_TEXTENCODING_UTF8 ).GetBuffer() );

       Line wrapping is a bit of a pain in patch mails though ;-)

Sorry about that. I need to learn how to manage a patch-based
workflow... I'll switch to attached file for the next patches, see if
that works better.


       ATB,

               Michael.

PS. you seem to have a gold-mine of easy-type hacks up your sleeve, any
chance you could add some of these to the wiki page and leave them for
the less obviously competant ? :-)

I'm not following....
Maybe you're giving me too much credit: All  I did was to read the
warning the compiler spouted out and get rid of them....



--
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot




Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.