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

Commit 1acf35fb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Replace sprintf with snprintf"

parents 27531fb8 02c4d418
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);