* [PATCH] ppp: fix another hardcode of ppp_packet size
@ 2010-05-10 22:17 Kristen Carlson Accardi
2010-05-11 14:27 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Kristen Carlson Accardi @ 2010-05-10 22:17 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
---
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 4e45ef1..bd1a60e 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;
--
1.6.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-11 14:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 22:17 [PATCH] ppp: fix another hardcode of ppp_packet size Kristen Carlson Accardi
2010-05-11 14:27 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox