Fix crash in while setting the bluetooth name.

Bug: 3246147

Original change by: Johan Hedberg <johan.hedberg@nokia.com>

Fix local name handling

A name variable of 248 bytes can't be passed to functions that expect it
to be nul-terminated (since if the name is exactly 248 bytes it wont
be). This patch fixes the name to always be stored in a 249 byte
variable where the last byte is always zero.

Change-Id: I27cc2b936e628ebbaa43f6fe809396eeb3b1a8d1
2 files changed