Page MenuHomeFreeBSD

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

Authored by dumbbell on Sun, Jun 14, 9:23 AM.

Details

Reviewers
None
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