linuxkpi: seq_read: Fix off by one error
authorEmmanuel Vadot <manu@FreeBSD.org>
Wed, 21 Dec 2022 11:42:24 +0000 (12:42 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Wed, 21 Dec 2022 20:11:31 +0000 (21:11 +0100)
commitccd8c4488afb15c2b866b58d5aa9dd994f300f95
treed02f5ca8dc06447ed3afef9e387c59fecf718162
parent2e08e4b75ea1080c224a33baf62199d893dc322d
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
sys/compat/linuxkpi/common/src/linux_seq_file.c