Skip to content
Commit 085c5e37 authored by Thorsten Blum's avatar Thorsten Blum Committed by Petr Pavlu
Browse files

module: Remove unnecessary size argument when calling strscpy()



The size parameter is optional and strscpy() automatically determines
the length of the destination buffer using sizeof() if the argument is
omitted. This makes the explicit sizeof() unnecessary. Remove it to
shorten and simplify the code.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250308194631.191670-2-thorsten.blum@linux.dev


Signed-off-by: default avatarPetr Pavlu <petr.pavlu@suse.com>
parent 6380bf8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment