[U-Boot] [PATCH] miiphy: use strncpy() not sprintf()

Laurence Withers lwithers at guralp.com
Fri Jul 15 12:59:43 CEST 2011


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, <lwithers at guralp.com>                http://www.guralp.com/
Direct tel:+447753988197 or tel:+443333408643               Software Engineer
General support queries: <support at guralp.com>         CMG-DCM CMG-EAM CMG-NAM


More information about the U-Boot mailing list