---
 gatchat/ppp_net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gatchat/ppp_net.c b/gatchat/ppp_net.c
index 4e45ef1..bd1a60e 100644
--- a/gatchat/ppp_net.c
+++ b/gatchat/ppp_net.c
@@ -95,7 +95,7 @@ static gboolean ppp_net_callback(GIOChannel *channel, 
GIOCondition cond,
 {
        struct ppp_net *net = (struct ppp_net *) userdata;
        GIOStatus status;
-       gchar buf[MAX_PACKET + 2];
+       gchar buf[MAX_PACKET + sizeof(struct ppp_header)];
        gsize bytes_read;
        GError *error = NULL;
        struct ppp_header *ppp = (struct ppp_header *) buf;
-- 
1.6.6.1

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

Reply via email to