From 9893b714bb0a9e95f3e051e3a0ad0e289ed4c1f6 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sun, 12 Jun 2011 18:58:05 +0000 Subject: [PATCH] don't crash because of bigger event --- src/l2cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/l2cap.c b/src/l2cap.c index 61682c52e..0464a29e8 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -100,7 +100,7 @@ void l2cap_dispatch(l2cap_channel_t *channel, uint8_t type, uint8_t * data, uint } void l2cap_emit_channel_opened(l2cap_channel_t *channel, uint8_t status) { - uint8_t event[17]; + uint8_t event[21]; event[0] = L2CAP_EVENT_CHANNEL_OPENED; event[1] = sizeof(event) - 2; event[2] = status;