[U-Boot] [PATCH] miiphy: use strcpy() not sprintf()
Albert ARIBAUD
albert.u.boot at aribaud.net
Thu Jul 14 15:49:23 CEST 2011
Hi Laurence,
Le 14/07/2011 14:31, Laurence Withers a écrit :
> 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 strcpy()
> instead.
Please use strncpy() which will also guard against overflows.
Amicalement,
--
Albert.
More information about the U-Boot
mailing list