]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/lpc32xx_eth.c
Fix GCC format-security errors and convert sprintfs.
[u-boot] / drivers / net / lpc32xx_eth.c
index 3ba5b4b1f9b32ba44145e8842913c423ba9ff397..6cc273c33c81f046b1ce4f555d590213eddaa77a 100644 (file)
@@ -582,7 +582,7 @@ int lpc32xx_eth_phylib_init(struct eth_device *dev, int phyid)
        }
        bus->read = lpc32xx_eth_phy_read;
        bus->write = lpc32xx_eth_phy_write;
-       sprintf(bus->name, dev->name);
+       strcpy(bus->name, dev->name);
 
        ret = mdio_register(bus);
        if (ret) {