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

2011-07-26 Thread Wolfgang Denk
Dear Laurence Withers, In message <1310727678-30367-1-git-send-email-lwith...@guralp.com> you 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, swi

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

2011-07-18 Thread Mike Frysinger
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: Mi