net: cosmetic: Make the MAC address string less magical
[oweals/u-boot.git] / net / eth_common.c
index 288090155e50bec54604def7b9ea85731c394735..e9d3c66741201f5ccfe321cf1431e3339f1ed18b 100644 (file)
@@ -32,7 +32,7 @@ int eth_getenv_enetaddr(const char *name, uchar *enetaddr)
 
 int eth_setenv_enetaddr(const char *name, const uchar *enetaddr)
 {
-       char buf[20];
+       char buf[ARP_HLEN_ASCII + 1];
 
        sprintf(buf, "%pM", enetaddr);