linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: vr41xx use strlcat() for the command line arguments
From: Yoichi Yuasa <yuasa@linux-mips.org>
Date: Thu, 10 Dec 2009 14:00:39 +0900
Cc: yuasa@linux-mips.org, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=3UDF9wKEmj0mbgeWFrn+hTS7mRTKT1LUdihMFWIIiX4=; b=l82980qOnr6f0MXpHzfLDSc8mGYzmY48I/m489Xx/WJXydTmGMP6I0gekg89uk/e8u 7FkuKpbYqySIrxpu0MJJypeR/9D4LGbchOPJuSnqWkMs/kcoDicD4el3OO4ksOs18VPp bal3UUfSqECPhWJH7j5Sp6Od82HR4DIwPvyH0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=Iu36ruImsYqiUqdKnFejlx1Cp90qzJz3F+JiuyAwEwcxuB9L1ZY7hISiId6fGCE/Fy 7XF0IKT6T5+Z5eIC1yjEhBF9Bo/bqFQ2fXjrWs4EBQ/4bk17pY2mFsuFsCzaNpbiq6FT VLvufrlm5VxrJAHCRh2jsJwg8LTm1k+GES3YE=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 arch/mips/vr41xx/common/init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c
index 1386e6f..2391632 100644
--- a/arch/mips/vr41xx/common/init.c
+++ b/arch/mips/vr41xx/common/init.c
@@ -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
@@ -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);
        }
 }
 
-- 
1.6.5.4


<Prev in Thread] Current Thread [Next in Thread>