]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/fm/tgec_phy.c
Fix GCC format-security errors and convert sprintfs.
[u-boot] / drivers / net / fm / tgec_phy.c
index 24cb17b6edde1790fe0954e873e70cc8b2413d8e..f038541c8dec17a9ec588216172b86c3597c71dd 100644 (file)
@@ -118,7 +118,7 @@ int fm_tgec_mdio_init(bd_t *bis, struct tgec_mdio_info *info)
        bus->read = tgec_mdio_read;
        bus->write = tgec_mdio_write;
        bus->reset = tgec_mdio_reset;
-       sprintf(bus->name, info->name);
+       strcpy(bus->name, info->name);
 
        bus->priv = info->regs;