diff options
author | 2014-07-26 15:58:22 +0200 | |
---|---|---|
committer | 2015-04-23 21:34:25 +0800 | |
commit | 4eb147c83f34e00184557923d2bf93f593deb41c (patch) | |
tree | 1bce341b0bcc1688cf3ffa662fde57102851c001 | |
parent | blackfin: defconfigs: cleanup unused CONFIG_MTD_CHAR, add MTD_SPI_NOR for BF5... (diff) | |
download | linux-4eb147c83f34e00184557923d2bf93f593deb41c.tar.gz linux-4eb147c83f34e00184557923d2bf93f593deb41c.tar.bz2 linux-4eb147c83f34e00184557923d2bf93f593deb41c.zip |
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>
-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 4f424ae3b36d..ad82468bd94d 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); } |