mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 19:00:38 +00:00
fix: modify dev name len when assembleTLV
Signed-off-by: Mark <liudongmiao@huawei.com>
This commit is contained in:
parent
8851fe2ac9
commit
ca8e888920
@ -258,6 +258,9 @@ int32_t AssembleTLV(BroadcastData *broadcastData, uint8_t dataType, const void *
|
||||
return SOFTBUS_MEM_ERR;
|
||||
}
|
||||
broadcastData->dataLen += validLen;
|
||||
if (dataType == TLV_TYPE_DEVICE_NAME) {
|
||||
broadcastData->dataLen += 1;
|
||||
}
|
||||
return SOFTBUS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user