---
 gatchat/gatserver.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index 95a9e8f..15bbbff 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -32,6 +32,8 @@
 #include "ringbuffer.h"
 #include "gatserver.h"
 
+#define BUF_SIZE 4096
+
 enum ParserState {
        PARSER_STATE_IDLE,
        PARSER_STATE_A,
@@ -480,7 +482,7 @@ GAtServer *g_at_server_new(GIOChannel *io)
        server->ref_count = 1;
        v250_settings_create(&server->v250);
        server->channel = io;
-       server->read_buf = ring_buffer_new(4096);
+       server->read_buf = ring_buffer_new(BUF_SIZE);
        server->max_read_attempts = 3;
 
        if (!server->read_buf)
-- 
1.6.6.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to