From 3778c1878cf59b486228fcf3c500a091e7607e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 7 Apr 2013 17:29:02 +0100 Subject: [PATCH] printf: skip pointer extension signifier chars after %p So they don't get printed after the serialised pointer string. --- gst/printf/printf-parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/printf/printf-parse.c b/gst/printf/printf-parse.c index fc7b4d5d43..f8d3475f91 100644 --- a/gst/printf/printf-parse.c +++ b/gst/printf/printf-parse.c @@ -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 */