Skip to content

Commit 7f198ba

Browse files
committed
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
2 parents 76e4503 + 505ffcc commit 7f198ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/affs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved,
276276
char *vol = match_strdup(&args[0]);
277277
if (!vol)
278278
return 0;
279-
strlcpy(volume, vol, 32);
279+
strscpy(volume, vol, 32);
280280
kfree(vol);
281281
break;
282282
}

0 commit comments

Comments
 (0)