Skip to content

Commit

Permalink
MIPS: VR41xx: Use strlcat() for the command line arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/784/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jan 12, 2010
1 parent d4d9a55 commit 66a0f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/mips/vr41xx/common/init.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 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
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -66,9 +66,9 @@ void __init prom_init(void)
argv = (char **)fw_arg1;

for (i = 1; i < argc; i++) {
strcat(arcs_cmdline, argv[i]);
strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE);
if (i < (argc - 1))
strcat(arcs_cmdline, " ");
strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
}
}

Expand Down

0 comments on commit 66a0f0f

Please sign in to comment.