This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: fix PR 11345
On Wed, Mar 3, 2010 at 6:43 PM, Pedro Alves <pedro@codesourcery.com> wrote:
> On Thursday 04 March 2010 02:35:44, Doug Evans wrote:
>> I'd be ok with just adding a dummy format arg (and a comment
>> explaining why it's there of course).
>
> something like printf("%s", string) instead of printf(string)?
> That doesn't work in this case, because printf("%s", "%%")
> isn't the same as printf("%%"), so you're back to the
> original bug.
printf (string, 0) is what I had in mind.
obviously printf ("%s", "%%") won't fix anything.
... but having tried it I'm seeing "... argument types not checked".
Blech.