commit | b69e33720c75d48589b7f63b5eaed8ae952fd0db | [log] [tgz] |
---|---|---|
author | Laurence Withers <lwithers@guralp.com> | Thu Jul 14 23:21:45 2011 +0000 |
committer | Wolfgang Denk <wd@denx.de> | Tue Jul 26 14:00:24 2011 +0200 |
tree | 6d3f1fca1ea7566f73e9311b3a21a79173df2357 | |
parent | 801949fdc46bd284731b17bb5e1f708ab1a632e6 [diff] |
miiphy: use strncpy() not sprintf() 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. Signed-off-by: Laurence Withers <lwithers@guralp.com> Cc: Andy Fleming <afleming@freescale.com>