diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index baa1fb498cf1..789f7f4a0908 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -869,7 +869,7 @@ int hci_get_dev_info(void __user *arg) else flags = hdev->flags; - strscpy(di.name, hdev->name, sizeof(di.name)); + strcpy(di.name, hdev->name); di.bdaddr = hdev->bdaddr; di.type = (hdev->bus & 0x0f) | ((hdev->dev_type & 0x03) << 4); di.flags = flags;