[ostree] ostree: Fix bug printing out commit body



commit 1a708accf178c4e14f74df373fc233a7ca52c2ff
Author: Stef Walter <stefw redhat com>
Date:   Thu Aug 29 18:14:28 2013 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostree/ot-dump.c b/src/ostree/ot-dump.c
index 08fea7e..eae40a7 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]