mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
Add trailing \0 to message length
We always put a trailing 0 at the end of the message body. Reflect this fact in the length of the message.
This commit is contained in:
parent
0ffd5e703a
commit
bb4310203a
1 changed files with 3 additions and 2 deletions
|
@ -1113,9 +1113,10 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
|
|||
if (res != GST_RTSP_OK)
|
||||
goto done;
|
||||
|
||||
/* we have the complete body now */
|
||||
/* we have the complete body now, store in the message adjusting the
|
||||
* length to include the traling '\0' */
|
||||
gst_rtsp_message_take_body (message,
|
||||
(guint8 *) builder->body_data, builder->body_len);
|
||||
(guint8 *) builder->body_data, builder->body_len + 1);
|
||||
builder->body_data = NULL;
|
||||
builder->body_len = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue