Page MenuHomeFreeBSD

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

Authored by dumbbell on Sun, Jun 14, 9:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 3:04 PM
Unknown Object (File)
Mon, Jun 15, 2:14 PM
Unknown Object (File)
Mon, Jun 15, 2:13 PM
Unknown Object (File)
Sun, Jun 14, 6:25 PM
Subscribers

Details

Reviewers
emaste
Group Reviewers
linuxkpi
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

Lint
Lint Skipped
Unit
Tests Skipped