summaryrefslogtreecommitdiff
path: root/Documentation/hid
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/hid')
-rw-r--r--Documentation/hid/hid-transport.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/hid/hid-transport.rst b/Documentation/hid/hid-transport.rst
index 6f3aaa86ce7b..0fe526f36db6 100644
--- a/Documentation/hid/hid-transport.rst
+++ b/Documentation/hid/hid-transport.rst
@@ -198,9 +198,9 @@ with HID core::
goto err_<...>;
}
- strlcpy(hid->name, <device-name-src>, 127);
- strlcpy(hid->phys, <device-phys-src>, 63);
- strlcpy(hid->uniq, <device-uniq-src>, 63);
+ strscpy(hid->name, <device-name-src>, sizeof(hid->name));
+ strscpy(hid->phys, <device-phys-src>, sizeof(hid->phys));
+ strscpy(hid->uniq, <device-uniq-src>, sizeof(hid->uniq));
hid->ll_driver = &custom_ll_driver;
hid->bus = <device-bus>;