diff --git a/src/hci.h b/src/hci.h index c45adb5f9..319eb5cca 100644 --- a/src/hci.h +++ b/src/hci.h @@ -65,7 +65,8 @@ extern "C" { // packet buffer sizes // HCI_ACL_PAYLOAD_SIZE is configurable and defined in config.h -#define HCI_EVENT_BUFFER_SIZE (HCI_EVENT_HEADER_SIZE + HCI_EVENT_PAYLOAD_SIZE) +// addition byte in even to terminate remote name request with '\0' +#define HCI_EVENT_BUFFER_SIZE (HCI_EVENT_HEADER_SIZE + HCI_EVENT_PAYLOAD_SIZE + 1) #define HCI_CMD_BUFFER_SIZE (HCI_CMD_HEADER_SIZE + HCI_CMD_PAYLOAD_SIZE) #define HCI_ACL_BUFFER_SIZE (HCI_ACL_HEADER_SIZE + HCI_ACL_PAYLOAD_SIZE)