don't crash because of bigger event

This commit is contained in:
matthias.ringwald 2011-06-12 18:58:05 +00:00
parent fc44e15878
commit 9893b714bb

View File

@ -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;