From 1a708accf178c4e14f74df373fc233a7ca52c2ff Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 29 Aug 2013 18:14:28 +0200 Subject: [PATCH] ostree: Fix bug printing out commit body Body was printed out repeated and mangled due to bad printf format string. https://bugzilla.gnome.org/show_bug.cgi?id=707067 --- src/ostree/ot-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-dump.c b/src/ostree/ot-dump.c index 08fea7e4..eae40a75 100644 --- a/src/ostree/ot-dump.c +++ b/src/ostree/ot-dump.c @@ -72,7 +72,7 @@ dump_indented_lines (const gchar *data) pos = strchr (data, '\n'); if (pos) { - g_print ("%s%*s", indent, (int)(pos + 1 - data), data); + g_print ("%s%.*s", indent, (int)(pos + 1 - data), data); data = pos + 1; } else