ppp: fix another hardcode of ppp_packet size

This commit is contained in:
Kristen Carlson Accardi 2010-05-10 15:17:22 -07:00 committed by Denis Kenzior
parent af976f7e52
commit 41188e326a
1 changed files with 1 additions and 1 deletions

View File

@ -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;