ppp: fix another hardcode of ppp_packet size
PATCH 1/1 ppp: fix another hardcode of ppp_packet size
--- gatchat/ppp_net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
gatchat/ppp_net.c +1 -1
@@ -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;
Signature · 1 line
1.6.6.1
Hi Kristen,
Quoted 4 lines
--- gatchat/ppp_net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Patch has been applied, thanks.
Regards,
-Denis