HomeFreeBSD

linuxkpi: seq_read: Fix off by one error

Description

linuxkpi: seq_read: Fix off by one error

strscpy needs the buffer length not the string length (so including
the '\0').

Reviewed by: bz
Fixes: f697b9432d9c ("linuxkpi: drm-kmod debugfs support")
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37771

Details

Provenance
manuAuthored on Dec 21 2022, 11:42 AM
Reviewer
rGf697b9432d9c: linuxkpi: drm-kmod debugfs support
Differential Revision
D37771: linuxkpi: seq_read: Fix one by one error
Parents
rG2e08e4b75ea1: zfs: Fix build with GCC 12.
Branches
Unknown
Tags
Unknown