affs: move from strlcpy with unused retval to strscpy
Changes
1 files changed · +1 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/affs/super.c | modified | +1 | −1 | View file |
fs/affs/super.c
View filediff --git a/fs/affs/super.c b/fs/affs/super.c
index 4c5f30a..58b3914 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;
}