Skip to content
Snippets Groups Projects
Commit 99b26638 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/rtsp/rtspconnection.c: Apply patch from Sebastien Cote to fix #319184.

Original commit message from CVS:
* gst/rtsp/rtspconnection.c: (read_body):
Apply patch from Sebastien Cote to fix #319184.
parent 15c52996
No related branches found
No related tags found
Loading
2005-11-21 Wim Taymans <wim@fluendo.com>
* gst/rtsp/rtspconnection.c: (read_body):
Apply patch from Sebastien Cote to fix #319184.
2005-11-21 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
......
......@@ -360,7 +360,8 @@ read_body (gint fd, glong content_length, RTSPMessage * msg)
goto done;
}
body = g_malloc (content_length);
body = g_malloc (content_length + 1);
body[content_length] = '\0';
bodyptr = body;
to_read = content_length;
while (to_read > 0) {
......@@ -375,7 +376,7 @@ read_body (gint fd, glong content_length, RTSPMessage * msg)
}
done:
rtsp_message_set_body (msg, (guint8 *) body, content_length);
rtsp_message_set_body (msg, (guint8 *) body, content_length + 1);
return RTSP_OK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment