summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/xilinx_ll_temac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xilinx_ll_temac.c b/drivers/net/xilinx_ll_temac.c
index 85660c0..27dafc1 100644
--- a/drivers/net/xilinx_ll_temac.c
+++ b/drivers/net/xilinx_ll_temac.c
@@ -298,9 +298,9 @@ int xilinx_ll_temac_initialize(bd_t *bis, struct ll_temac_info *devinf)
/* use given name or generate its own unique name */
if (devinf->devname) {
- strncpy(dev->name, devinf->devname, NAMESIZE);
+ strncpy(dev->name, devinf->devname, sizeof(dev->name));
} else {
- snprintf(dev->name, NAMESIZE, "lltemac.%lx", devinf->base_addr);
+ snprintf(dev->name, sizeof(dev->name), "lltemac.%lx", devinf->base_addr);
devinf->devname = dev->name;
}