Commit 51670f46 authored by Simon Morlat's avatar Simon Morlat
Browse files

write null character when rewinding stream.

parent 45b9b96b
......@@ -183,6 +183,7 @@ static void belle_sip_channel_input_stream_reset(belle_sip_channel_input_stream_
memmove(input_stream->buff,input_stream->read_ptr,remaining);
input_stream->read_ptr=input_stream->buff;
input_stream->write_ptr=input_stream->buff+remaining;
*input_stream->write_ptr='\0';
}else{
input_stream->read_ptr=input_stream->write_ptr=input_stream->buff;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment