]> git.ipfire.org Git - network.git/commitdiff
networkd: address: Fix buffer to Ethernet address strings
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Feb 2023 13:53:52 +0000 (13:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Feb 2023 13:53:52 +0000 (13:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/address.h

index d284a0bb1899081e0e69bb04d8559b74742a2ee2..b7556f47aa31c5195d1c6bf292268e1ef429f329 100644 (file)
@@ -43,7 +43,7 @@ static inline int nw_address_from_string(nw_address_t* addr, const char* s) {
 }
 
 static inline char* nw_address_to_string(const nw_address_t* addr) {
-       char buffer[ETH_ALEN];
+       char buffer[18];
 
        char* p = ether_ntoa_r(addr, buffer);
        if (!p)