diff options
Diffstat (limited to 'net/eth.c')
-rw-r--r-- | net/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c index f14767b24af..aed4dd6cddb 100644 --- a/net/eth.c +++ b/net/eth.c @@ -203,7 +203,7 @@ int eth_register(struct eth_device *dev) struct eth_device *d; static int index = 0; - assert(strlen(dev->name) < NAMESIZE); + assert(strlen(dev->name) < sizeof(dev->name)); if (!eth_devices) { eth_current = eth_devices = dev; |