From 7a05ef2002e61c35b9a3aa32a34afe423de30fca Mon Sep 17 00:00:00 2001 From: baohongde Date: Wed, 31 Oct 2018 10:56:16 +0800 Subject: [PATCH] components/bt: Fix the different size of name buffer allocation size(backport 3.1) A cherry-pick of MR !3587 Close https://github.com/espressif/esp-idf/issues/2615 --- components/bt/bluedroid/btc/profile/std/spp/btc_spp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b28d8cf58c..45cceb1d95 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 { -- 2.40.0