summaryrefslogtreecommitdiff
path: root/arch/m68k/68000/ucsimm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/68000/ucsimm.c')
-rw-r--r--arch/m68k/68000/ucsimm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/68000/ucsimm.c b/arch/m68k/68000/ucsimm.c
index c54fde75eae8..6b84e826040f 100644
--- a/arch/m68k/68000/ucsimm.c
+++ b/arch/m68k/68000/ucsimm.c
@@ -9,6 +9,7 @@
* for more details.
*/
#include <linux/init.h>
+#include <linux/string.h>
#include <asm/bootstd.h>
#include <asm/machdep.h>
#include <asm/MC68VZ328.h>
@@ -31,7 +32,7 @@ void __init init_ucsimm(char *command, int size)
pr_info("uCsimm/uCdimm hwaddr %pM\n", p);
p = getbenv("APPEND");
if (p)
- strcpy(p, command);
+ strscpy(p, command, size);
else
command[0] = 0;
}