diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/armada100_fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/armada100_fec.c b/drivers/net/armada100_fec.c index 018891e173c..5d4b90c6ba7 100644 --- a/drivers/net/armada100_fec.c +++ b/drivers/net/armada100_fec.c @@ -717,7 +717,7 @@ int armada100_fec_register(unsigned long base_addr) struct mii_dev *mdiodev = mdio_alloc(); if (!mdiodev) return -ENOMEM; - strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); + strlcpy(mdiodev->name, dev->name, MDIO_NAME_LEN); mdiodev->read = smi_reg_read; mdiodev->write = smi_reg_write; |