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
This commit is contained in:
Stef Walter 2013-08-29 18:14:28 +02:00
parent 8fce2513e9
commit 1a708accf1
1 changed files with 1 additions and 1 deletions

View File

@ -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