Bluetooth: Replace sprintf with snprintf

Change will replace sprintf with snprintf, since sprintf is a
banned function.

Signed-off-by: Juffin Alex Varghese <jalex@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>