printf: skip pointer extension signifier chars after %p
authorTim-Philipp Müller <tim@centricular.net>
Sun, 7 Apr 2013 16:29:02 +0000 (17:29 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 12 Apr 2013 22:05:57 +0000 (23:05 +0100)
So they don't get printed after the serialised pointer string.

gst/printf/printf-parse.c

index fc7b4d5..f8d3475 100644 (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 */