summaryrefslogtreecommitdiff
path: root/src/ostree/ot-dump.c
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2013-08-29 18:14:28 +0200
committerStef Walter <stefw@redhat.com>2013-08-29 21:07:18 +0200
commit1a708accf178c4e14f74df373fc233a7ca52c2ff (patch)
treec7d01969c287e46a936482285695341f3664db1a /src/ostree/ot-dump.c
parent8fce2513e95f1e7c1f4ac7e7cf0343e1cffa1922 (diff)
downloadostree-1a708accf178c4e14f74df373fc233a7ca52c2ff.tar.gz
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
Diffstat (limited to 'src/ostree/ot-dump.c')
-rw-r--r--src/ostree/ot-dump.c2
1 files changed, 1 insertions, 1 deletions
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