printf: skip pointer extension signifier chars after %p

So they don't get printed after the serialised pointer string.
This commit is contained in:
Tim-Philipp Müller 2013-04-07 17:29:02 +01:00 committed by Tim-Philipp Müller
parent 6d8a6470d5
commit 3778c1878c

View file

@ -400,6 +400,7 @@ printf_parse (const char *format, char_directives * d, arguments * a)
type = TYPE_POINTER_EXT;
dp->flags |= FLAG_PTR_EXT;
dp->ptr_ext_char = cp[1];
cp += 2;
/* we do not use dp->conversion='s' on purpose here, so we
* can fall back to printing just the pointer with %p if the
* serialisation function returned NULL for some reason */