diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-07-26 13:58:22 (GMT) |
---|---|---|
committer | Steven Miao <realmz6@gmail.com> | 2015-04-23 13:34:25 (GMT) |
commit | 4eb147c83f34e00184557923d2bf93f593deb41c (patch) | |
tree | 1bce341b0bcc1688cf3ffa662fde57102851c001 /arch | |
parent | 2fcc440ca69a5d857523e5aed00c959c07085f3c (diff) | |
download | linux-4eb147c83f34e00184557923d2bf93f593deb41c.tar.xz |
arch: blackfin: kernel: setup.c: Cleaning up missing null-terminate in conjunction with strncpy
Replacing strncpy with strlcpy to avoid strings that lacks null terminate.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Steven Miao <realmz6@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index 4f424ae..ad82468 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.c @@ -1464,5 +1464,5 @@ void __init cmdline_init(const char *r0) { early_shadow_stamp(); if (r0) - strncpy(command_line, r0, COMMAND_LINE_SIZE); + strlcpy(command_line, r0, COMMAND_LINE_SIZE); } |