From: baohongde Date: Wed, 31 Oct 2018 02:48:47 +0000 (+0800) Subject: components/bt: Fix the different size of name buffer allocation size X-Git-Tag: v3.3-beta1~161^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e19a352a2b28898f3d8222cd2e97d570386f1e53;p=esp-idf components/bt: Fix the different size of name buffer allocation size Close https://github.com/espressif/esp-idf/issues/2615 --- diff --git a/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c b/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c index 1d764fcad3..ad39ac7576 100644 --- a/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c +++ b/components/bt/bluedroid/btc/profile/std/spp/btc_spp.c @@ -52,7 +52,7 @@ typedef struct { list_t *list; list_t *incoming_list; uint8_t service_uuid[16]; - char service_name[ESP_SPP_SERVER_NAME_MAX]; + char service_name[ESP_SPP_SERVER_NAME_MAX + 1]; } spp_slot_t; static struct spp_local_param_t {