projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8d7a44
)
gdp: Allocate the 1 byte more memory that was forgotten!!!!!
author
Zaheer Abbas Merali
<zaheerabbas@merali.org>
Fri, 18 Feb 2005 13:58:36 +0000
(13:58 +0000)
committer
Tim-Philipp Müller
<tim@centricular.net>
Tue, 11 Sep 2012 00:54:37 +0000
(
01:54
+0100)
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!!!!!
gst/gdp/dataprotocol.c
patch
|
blob
|
history
diff --git
a/gst/gdp/dataprotocol.c
b/gst/gdp/dataprotocol.c
index
2751298
..
645d757
100644
(file)
--- 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) {