Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02c4d418 authored by Juffin Alex Varghese's avatar Juffin Alex Varghese
Browse files

Bluetooth: Replace sprintf with snprintf



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

CRs-FIxed: 548220
Change-Id: I8c978f478740422193637c9aef99d6afce2e9f3d
Signed-off-by: default avatarJuffin Alex Varghese <jalex@codeaurora.org>
parent a435d142
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2202,7 +2202,7 @@ int hci_register_dev(struct hci_dev *hdev)
	if (id < 0)
		return id;

	sprintf(hdev->name, "hci%d", id);
	snprintf(hdev->name, sizeof(hdev->name), "hci%d", id);
	hdev->id = id;

	BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);