|
@@ -775,7 +775,7 @@ static int hidp_setup_hid(struct hidp_session *session,
|
|
hid->version = req->version;
|
|
hid->version = req->version;
|
|
hid->country = req->country;
|
|
hid->country = req->country;
|
|
|
|
|
|
- strncpy(hid->name, req->name, sizeof(req->name) - 1);
|
|
|
|
|
|
+ strncpy(hid->name, req->name, sizeof(hid->name));
|
|
|
|
|
|
snprintf(hid->phys, sizeof(hid->phys), "%pMR",
|
|
snprintf(hid->phys, sizeof(hid->phys), "%pMR",
|
|
&l2cap_pi(session->ctrl_sock->sk)->chan->src);
|
|
&l2cap_pi(session->ctrl_sock->sk)->chan->src);
|