Open Source Telephony
 help / color / mirror / Atom feed
From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] ppp: fix another hardcode of ppp_packet size
Date: Mon, 10 May 2010 15:17:22 -0700	[thread overview]
Message-ID: <1273529842-8996-1-git-send-email-kristen@linux.intel.com> (raw)

[-- 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


             reply	other threads:[~2010-05-10 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-10 22:17 Kristen Carlson Accardi [this message]
2010-05-11 14:27 ` [PATCH] ppp: fix another hardcode of ppp_packet size Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273529842-8996-1-git-send-email-kristen@linux.intel.com \
    --to=kristen@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox