]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/ether-addr-util.c
ether-addr-util: make hw_addr_to_string() return valid string even if hardware addres...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Sep 2021 13:59:52 +0000 (22:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Oct 2021 07:39:47 +0000 (16:39 +0900)
commit914ac555cd40f9c09e655a737214bfb7de21b8d9
treee05f6a57d3c4147310d58cb06299b9fb0f20c076
parent18b113797757ef401be75fda1ea50b2db1ec65a7
ether-addr-util: make hw_addr_to_string() return valid string even if hardware address is null

Previously, when the length of the hardware address is zero, then the
buffer was not nul-terminated.

This also replaces sprintf() with hexchar().
src/basic/ether-addr-util.c