projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5abbb7b
)
affs: move from strlcpy with unused retval to strscpy
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:01:39 +0000
(23:01 +0200)
committer
David Sterba
<dsterba@suse.com>
Fri, 19 Aug 2022 11:03:10 +0000
(13:03 +0200)
Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.
Link:
https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/affs/super.c
patch
|
blob
|
history
diff --git
a/fs/affs/super.c
b/fs/affs/super.c
index 4c5f30a833362a67d8fbec022746ba06b87390fb..58b391446ae1fd97e48891c82ec8d88f32314303 100644
(file)
--- 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;
- str
l
cpy(volume, vol, 32);
+ str
s
cpy(volume, vol, 32);
kfree(vol);
break;
}