gdp: Allocate the 1 byte more memory that was forgotten!!!!!
Original commit message from CVS: 2005-02-18 Zaheer Abbas Merali <zaheerabbas at merali dot org> * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_dump_byte_array): Allocate the 1 byte more memory that was forgotten!!!!!
This commit is contained in:
parent
c6ebc31067
commit
a3562d1fda
@ -83,7 +83,7 @@ gst_dp_dump_byte_array (guint8 * array, guint length)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int n = 8; /* number of bytes per line */
|
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);
|
GST_LOG ("dumping byte array of length %d", length);
|
||||||
for (i = 0; i < length; ++i) {
|
for (i = 0; i < length; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user