From: Laurence Withers Date: Fri, 15 Jul 2011 10:59:43 +0000 Subject: [U-Boot] [PATCH] miiphy: use strncpy() not sprintf() In-Reply-To: <1310721705-9240-1-git-send-email-lwithers@guralp.com> References: <1310721705-9240-1-git-send-email-lwithers@guralp.com> Message-ID: <20110715105943.GE5891@guralp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jul 15, 2011 at 09:21:45AM +0000, Laurence Withers wrote: > In miiphy_register() the new device's name was initialised by passing a > string parameter as the format string to sprintf(). As this would cause > problems if it ever contained a '%' symbol, switch to using strncpy() > instead. My apologies; I have missed the "v3" tag in the subject. I shall repost. Bye for now, -- Laurence Withers, http://www.guralp.com/ Direct tel:+447753988197 or tel:+443333408643 Software Engineer General support queries: CMG-DCM CMG-EAM CMG-NAM