Skip to content
Permalink
Browse files

Do not include the trailing NULL from the C-String in the SDP service…

… name

Change-Id: Ia9e589cafda38705ea1e1a163665d157748661b1
  • Loading branch information...
Timm Korte authored and intervigilium committed May 1, 2017
1 parent 85d4e42 commit 0ebf465dd13963f9d3c34b3cef7f7a8dd830248d
Showing with 1 addition and 1 deletion.
  1. +1 −1 btif/src/btif_sock_sdp.c
@@ -137,7 +137,7 @@ static bool create_base_record(const uint32_t sdp_handle, const char *name,
if (name[0] != '\0') {
stage = "service_name";
if (!SDP_AddAttribute(sdp_handle, ATTR_ID_SERVICE_NAME,
TEXT_STR_DESC_TYPE, (uint32_t)(strlen(name) + 1),
TEXT_STR_DESC_TYPE, (uint32_t)(strlen(name)),
(uint8_t *)name))
goto error;
}

0 comments on commit 0ebf465

Please sign in to comment.
You can’t perform that action at this time.