diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2025-09-29 15:02:45 +0200 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2025-11-13 10:36:44 +0100 |
| commit | c755a09b52c09b8d67ef35b4ac3166ca6e797bee (patch) | |
| tree | 6118466f959827b1fecfd9efc8cac547ccaff41c /net/unix/af_unix.c | |
| parent | b4909ae8d4e95a5046bcba099a3afdef8024b1b2 (diff) | |
fuse: use strscpy instead of strcpy
As pointed out in [1], strcpy() is deprecated in favor of strscpy().
Furthermore, the size of the buffer for the name to be copied is well known
at this point since we are going to move the pointer by that much on the
next line. Hence, it's safe to assume 'namelen' for the size of the string
to be copied.
[1] https://github.com/KSPP/linux/issues/88
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
