[PATCH] ppp: fix another hardcode of ppp_packet size
Kristen Carlson Accardi
kristen at linux.intel.com
Mon May 10 15:17:22 PDT 2010
---
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
More information about the ofono
mailing list