HomeFreeBSD

linuxkpi: Add `strscpy_pad()` to <linux/string.h>

Description

linuxkpi: Add strscpy_pad() to <linux/string.h>

It's the same as strscpy() except that it fills the rest of the
destination buffer with zeroes if the source buffer is shorter.

Reviewed by: manu
Approved by: manu

(cherry picked from commit b1a9e570fe2da0a43c41327d7ce21b27bf8257b8)

Details

Provenance
dumbbellAuthored on Feb 14 2023, 11:46 PM
Parents
rG431a3c0b2b52: linuxkpi: Define `debugfs_initialized()`
Branches
Unknown
Tags
Unknown