Page MenuHomeFreeBSD

linuxkpi: Change `strscpy()` and `strscpy_pad()` to make their `len` argument optional
ClosedPublic

Authored by dumbbell on Sun, Jun 14, 9:23 AM.
Tags
None
Referenced Files
F161921622: D57585.diff
Wed, Jul 8, 1:15 AM
Unknown Object (File)
Tue, Jul 7, 11:46 AM
Unknown Object (File)
Tue, Jul 7, 4:12 AM
Unknown Object (File)
Mon, Jul 6, 6:47 PM
Unknown Object (File)
Mon, Jul 6, 4:43 AM
Unknown Object (File)
Sun, Jul 5, 7:54 PM
Unknown Object (File)
Sun, Jul 5, 4:17 PM
Unknown Object (File)
Sat, Jul 4, 8:39 AM
Subscribers

Details

Summary

The previous implementation always took the len but now, it is optional and defaults to the size of dst.

The DRM drivers started to use strscpy() without the len in Linux 6.13.

This is part of the update of DRM drivers to Linux 6.13.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable