Skip to contentSkip to conversation

MIPS: vr41xx use strlcat() for the command line arguments

PATCH Applied Yoichi Yuasa 2 participants 2 messages Dec 10, 2009 – Dec 19, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: vr41xx use strlcat() for the command line arguments

---
 arch/mips/vr41xx/common/init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/vr41xx/common/init.c +3 -3
index 1386e6f..2391632 100644
@@ -1,7 +1,7 @@
 /*
  *  init.c, Common initialization routines for NEC VR4100 series.
  *
- *  Copyright (C) 2003-2008  Yoichi Yuasa <[email protected]>
+ *  Copyright (C) 2003-2009  Yoichi Yuasa <[email protected]>
  *
  *  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
@@ -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);
 	}
 }
 
Signature · 1 line
1.6.5.4
Applied
#1 lore raw

On Thu, Dec 10, 2009 at 02:00:39PM +0900, Yoichi Yuasa wrote:

Applied, Yoichi-San. Thanks!

Ralf