mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
input: fixed missing byte(HID descriptor field) in the input file
This commit is contained in:
parent
5f18074261
commit
0ffdac3e37
@ -183,7 +183,7 @@ int store_device_info(bdaddr_t *src, bdaddr_t *dst, struct hidp_connadd_req *req
|
||||
|
||||
create_filename(filename, PATH_MAX, src, "input");
|
||||
|
||||
size = 15 + 3 + 3 + 5 + (req->rd_size * 2) + 1 + 9;
|
||||
size = 15 + 3 + 3 + 5 + (req->rd_size * 2) + 2 + 9;
|
||||
str = g_try_malloc0(size);
|
||||
if (!str)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user