summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-08-11 11:34:40 +0200
committerJakub Kicinski <kuba@kernel.org>2025-08-12 14:08:56 -0700
commit63fe077c21d323cbc8d56114e9139bbadab33ce5 (patch)
treeeb31a378f67034c87af964fa763113739b8d48ed /rust/helpers/platform.c
parente0ab61faba808bbb00728b2e33e09e534732e80f (diff)
caif: Replace memset(0) + strscpy() with strscpy_pad()
Replace memset(0) followed by strscpy() with strscpy_pad() to improve cfctrl_linkup_request(). This avoids zeroing the memory before copying the string and ensures the destination buffer is only written to once, simplifying the code and improving efficiency. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250811093442.5075-2-thorsten.blum@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions