diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-10-06 17:42:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-10-06 17:42:29 -0700 |
commit | 7f198ba7ae9874c64ffe8cd3aa60cf5dab78ce3a (patch) | |
tree | 95cd7ccdbc0f0c5e2cade2206fe34b467c772611 /fs | |
parent | 76e45035348c247a70ed50eb29a9906657e4444f (diff) | |
parent | 505ffcc852401aaac4dfb57c16bec0f7838c0e00 (diff) |
Merge tag 'affs-for-6.1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull affs update from David Sterba:
"One minor update for AFFS, switching away from strlcpy"
* tag 'affs-for-6.1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
affs: move from strlcpy with unused retval to strscpy
Diffstat (limited to 'fs')
-rw-r--r-- | fs/affs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 4c5f30a83336..58b391446ae1 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c @@ -276,7 +276,7 @@ parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, char *vol = match_strdup(&args[0]); if (!vol) return 0; - strlcpy(volume, vol, 32); + strscpy(volume, vol, 32); kfree(vol); break; } |