]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
arch: blackfin: kernel: setup.c: Cleaning up missing null-terminate in conjunction...
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 26 Jul 2014 13:58:22 +0000 (15:58 +0200)
committerSteven Miao <realmz6@gmail.com>
Thu, 23 Apr 2015 13:34:25 +0000 (21:34 +0800)
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>
arch/blackfin/kernel/setup.c

index 4f424ae3b36de8225e5bee3977bde03a82548bb4..ad82468bd94d0dea2dda6472a734ff1745dfe9df 100644 (file)
@@ -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);
 }