summaryrefslogtreecommitdiff
path: root/attrib/gatttool.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-10-10 20:34:59 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-11 08:35:06 +0200
commita2e4b27451e47c5a6da6f640b5ea9cc2ec1f8804 (patch)
tree350ece7e4a07c253cc5478920a07839086bfdfa2 /attrib/gatttool.c
parent4c3dec8abfde7e16494b552a4a777ef28866dc40 (diff)
downloadbluez-a2e4b27451e47c5a6da6f640b5ea9cc2ec1f8804.tar.gz
attrib: Remove all the usages of ATT_MAX_MTU
This "define" was bogus for two reasons: 1. There's no concept of maximum MTU in the ATT level; 2. It was used as a maximum attribute value length.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r--attrib/gatttool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index 16cce0c6e..252064dc2 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -227,7 +227,7 @@ static gboolean characteristics(gpointer user_data)
static void char_read_cb(guint8 status, const guint8 *pdu, guint16 plen,
gpointer user_data)
{
- uint8_t value[ATT_MAX_MTU];
+ uint8_t value[plen];
ssize_t vlen;
int i;