[patch] fix printf("%p") (lesstif / XPDF crash)

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Sun May 27 17:06:00 GMT 2007


On Sun, May 27, 2007 at 08:15:23AM -0600, Eric Blake wrote:
>According to Brian Dessent on 5/27/2007 7:01 AM:
>> Currently sprintf("%p") does not work because the path taken for
>> handling %p shares most of the code with %x but fails to populate the
>> char ox[2] used to emit the prefix, resulting in two uninitialized
>> characters being written instead of 'Ox'.
>
>Sorry about that - I missed %p when I changed the logic of %x in order to
>add %a.  But your analysis is correct, and your patch looks correct too.
>Since I broke it, I'm checking in your patch as obvious.

...and I'm generating a new cygwin snapshot with the change.

Thanks Brian for tracking this down and thanks Eric for checking it in.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list