aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorMohammad Mahdi Anbaraki <[email protected]>2025-04-03 18:11:59 +0000
committerGreg Ungerer <[email protected]>2025-05-18 22:54:30 +0000
commit245bb7b95aff5f20884c0b635eacb96645eadc84 (patch)
tree55051d697e0070b883d6c55d55bb3e35f466f689 /rust/helpers/mutex.c
parentm68k: coldfire: gpio: use new line value setter callbacks (diff)
downloadkernel-245bb7b95aff5f20884c0b635eacb96645eadc84.tar.gz
kernel-245bb7b95aff5f20884c0b635eacb96645eadc84.zip
m68k/kernel: replace strncpy() with strscpy()
Swapped out strncpy() for strscpy() in parse_uboot_commandline() while copying to commandp. strscpy() makes sure the string is properly null- terminated and gives a more useful return value so it's just a safer choice overall. Link: https://github.com/KSPP/linux/issues/90 Signed-off-by: Mohammad Mahdi Anbaraki <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions