Skip to content

Commit 3b37042

Browse files
tobluxtsbogend
authored andcommitted
MIPS: Replace strcpy() with strscpy() in vpe_elfload()
strcpy() is deprecated; use strscpy() instead. Link: KSPP/linux#88 Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 9f6d908 commit 3b37042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/mips/kernel/vpe.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/vmalloc.h>
2323
#include <linux/elf.h>
2424
#include <linux/seq_file.h>
25+
#include <linux/string.h>
2526
#include <linux/syscalls.h>
2627
#include <linux/moduleloader.h>
2728
#include <linux/interrupt.h>
@@ -582,7 +583,7 @@ static int vpe_elfload(struct vpe *v)
582583
struct module mod; /* so we can re-use the relocations code */
583584

584585
memset(&mod, 0, sizeof(struct module));
585-
strcpy(mod.name, "VPE loader");
586+
strscpy(mod.name, "VPE loader");
586587

587588
hdr = (Elf_Ehdr *) v->pbuffer;
588589
len = v->plen;

0 commit comments

Comments
 (0)