diff options
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; |