Skip to contentSkip to conversation

ppp: fix another hardcode of ppp_packet size

PATCH In review Kristen Carlson Accardi 2 participants 2 messages May 10, 2010 – May 11, 2010

lore
Share & tools
lore
#0 lore raw

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
index 4e45ef1..bd1a60e 100644
@@ -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
#1 lore raw

Hi Kristen,

Quoted 4 lines
---
 gatchat/ppp_net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis