Commit 245bb7b9 authored by Mohammad Mahdi Anbaraki's avatar Mohammad Mahdi Anbaraki Committed by Greg Ungerer
Browse files

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: default avatarMohammad Mahdi Anbaraki <m.mahdianbaraki@gmail.com>
Signed-off-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
parent 0c4aba40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment