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


Hi Tor,

On Thu, 2011-01-13 at 14:18 -0700, Tor Lillqvist wrote:
Which I did. Which was fun. Or at least entertaining.

        Great catch and analysis (and speed) :-) patch looks ok to me; though I
would prefer:

+    while ( nRet && ( nRet + 2 == rSize ) ) // buffer was too small, retry until big enough

        a >= instead of == rSize I think (being the paranoid
defensive I am).

        I also grokked all the other calls of GetPrivateProfileString git grep
showed me in the codebase, and in no other case do we have a similar
loop, and we usually pass in a 32k static buffer in those cases.

        So - lets get it in :-)

        Thanks !

                Michael.

-- 
 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.