From 0e084e2179c0c18738ece42d9aee839c591121b9 Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Fri, 18 Feb 2005 13:58:36 +0000 Subject: [PATCH] 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!!!!! --- gst/gdp/dataprotocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c index 27512987ea..645d7574a7 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) {