Commit 6452927f authored by jehan's avatar jehan
Browse files

fix channel buffer lenth max size

parent 6bb52c55
......@@ -127,7 +127,7 @@ static void belle_sip_channel_input_stream_reset(belle_sip_channel_input_stream_
input_stream->msg=NULL;
}
static size_t belle_sip_channel_input_stream_get_buff_length(belle_sip_channel_input_stream_t* input_stream) {
return MAX_CHANNEL_BUFF_SIZE - (input_stream->write_ptr-input_stream->read_ptr);
return MAX_CHANNEL_BUFF_SIZE - (input_stream->write_ptr-input_stream->buff);
}
int belle_sip_channel_process_data(belle_sip_channel_t *obj,unsigned int revents){
......
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