From: Zaheer Abbas Merali Date: Fri, 18 Feb 2005 13:58:36 +0000 (+0000) Subject: gdp: Allocate the 1 byte more memory that was forgotten!!!!! X-Git-Tag: 1.19.3~507^2~15046 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e084e2179c0c18738ece42d9aee839c591121b9;p=platform%2Fupstream%2Fgstreamer.git gdp: Allocate the 1 byte more memory that was forgotten!!!!! Original commit message from CVS: 2005-02-18 Zaheer Abbas Merali * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_dump_byte_array): Allocate the 1 byte more memory that was forgotten!!!!! --- diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c index 2751298..645d757 100644 --- a/gst/gdp/dataprotocol.c +++ b/gst/gdp/dataprotocol.c @@ -83,7 +83,7 @@ gst_dp_dump_byte_array (guint8 * array, guint length) { int i; int n = 8; /* number of bytes per line */ - gchar *line = g_malloc (3 * n); + gchar *line = g_malloc (3 * n + 1); GST_LOG ("dumping byte array of length %d", length); for (i = 0; i < length; ++i) {