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

Mike Frysinger vapier at gentoo.org
Mon Jul 18 20:03:15 CEST 2011


On Fri, Jul 15, 2011 at 07:01, 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.

Acked-by: Mike Frysinger <vapier at gentoo.org>
-mike


More information about the U-Boot mailing list