diff options
author | Kristen Carlson Accardi <kristen@linux.intel.com> | 2010-05-10 15:17:22 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-11 09:26:08 -0500 |
commit | 41188e326a7b4ec075896fca296ec063e2e747ad (patch) | |
tree | 63e6939369ce29768bd1586041cab8571d6c6a23 /gatchat/ppp_net.c | |
parent | af976f7e524746b1b55645967e11ab8250f593a8 (diff) |
ppp: fix another hardcode of ppp_packet size
Diffstat (limited to 'gatchat/ppp_net.c')
-rw-r--r-- | 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 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; |