commit | 778a28c162f34c78e80d2109e7590551d2ab7fac | [log] [tgz] |
---|---|---|
author | Jaikumar Ganesh <jaikumar@google.com> | Fri Dec 03 14:16:52 2010 -0800 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Mon Dec 06 09:58:04 2010 -0800 |
tree | 44f5428cf7d9a241f58c32a292a387913166b65a | |
parent | 8ff98ead0a283cdc7a3248be47596fb6c1299e51 [diff] |
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