Commit 66a0f0f2 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

MIPS: VR41xx: Use strlcat() for the command line arguments

Signed-off-by: default avatarYoichi Yuasa <yuasa@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/784/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent d4d9a553
/* /*
* init.c, Common initialization routines for NEC VR4100 series. * init.c, Common initialization routines for NEC VR4100 series.
* *
* Copyright (C) 2003-2008 Yoichi Yuasa <yuasa@linux-mips.org> * Copyright (C) 2003-2009 Yoichi Yuasa <yuasa@linux-mips.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -66,9 +66,9 @@ void __init prom_init(void) ...@@ -66,9 +66,9 @@ void __init prom_init(void)
argv = (char **)fw_arg1; argv = (char **)fw_arg1;
for (i = 1; i < argc; i++) { for (i = 1; i < argc; i++) {
strcat(arcs_cmdline, argv[i]); strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE);
if (i < (argc - 1)) if (i < (argc - 1))
strcat(arcs_cmdline, " "); strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment