From 0236b3a1dab56213910e1373a17abe5335ee7a5f Mon Sep 17 00:00:00 2001 From: Matthew Robbetts Date: Fri, 22 Sep 2023 17:51:23 -0700 Subject: [PATCH] Match size of std::copy input to its output variable --- daemon/interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/interface.cpp b/daemon/interface.cpp index ce89621..dbe3b0f 100644 --- a/daemon/interface.cpp +++ b/daemon/interface.cpp @@ -81,7 +81,7 @@ std::pair, std::string> get_interface_mac( close(fd); uint8_t* sa = reinterpret_cast(ifr.ifr_hwaddr.sa_data); - std::copy(sa, sa + 8, std::begin(mac)); + std::copy(sa, sa + 6, std::begin(mac)); char str_mac[18]; sprintf(str_mac, "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x", mac[0], mac[1], mac[2],