avdtp/avrdp: use only 30 bytes for sdp attribute value buffer

This commit is contained in:
Matthias Ringwald 2020-04-16 16:05:04 +02:00
parent 59607b77e5
commit c8b9823f68
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@
#include "classic/sdp_util.h"
static int record_id = -1;
static uint8_t attribute_value[1000];
static uint8_t attribute_value[30];
static const unsigned int attribute_value_buffer_size = sizeof(attribute_value);
// typedef struct {

View File

@ -60,7 +60,7 @@ static const char * default_avrcp_target_service_provider_name = "BTstack AVRCP
static uint16_t avrcp_cid_counter = 0;
static avrcp_context_t * sdp_query_context;
static uint8_t attribute_value[1000];
static uint8_t attribute_value[30];
static const unsigned int attribute_value_buffer_size = sizeof(attribute_value);
static btstack_linked_list_t connections;