From 8f05535bb280bb8f957e179241fb6134b947e48a Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 24 Apr 2010 18:59:44 +0200 Subject: Add offset parameter to ring_buffer_write_ptr() function --- gatchat/gatchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gatchat/gatchat.c') diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index 613aad2d..6f1aa721 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -711,7 +711,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, break; rbytes = 0; - buf = ring_buffer_write_ptr(chat->buf); + buf = ring_buffer_write_ptr(chat->buf, 0); err = g_io_channel_read(channel, (char *) buf, toread, &rbytes); g_at_util_debug_chat(TRUE, (char *)buf, rbytes, -- cgit v1.2.3