From 41188e326a7b4ec075896fca296ec063e2e747ad Mon Sep 17 00:00:00 2001 From: Kristen Carlson Accardi Date: Mon, 10 May 2010 15:17:22 -0700 Subject: [PATCH] ppp: fix another hardcode of ppp_packet size --- gatchat/ppp_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatchat/ppp_net.c b/gatchat/ppp_net.c index 4e45ef14..bd1a60ee 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;