Skip to content

Commit

Permalink
fix to error introduced into unixVif.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bebopagogo committed Jun 8, 2024
1 parent bd45fb9 commit 6095733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/unixVif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ bool UnixVif::SetHardwareAddress(const ProtoAddress& ethAddr)
return false;
}

sprintf(cmd, 1024, "/sbin/ifconfig %s hw ether %02x:%02x:%02x:%02x:%02x:%02x",
snprintf(cmd, 1024, "/sbin/ifconfig %s hw ether %02x:%02x:%02x:%02x:%02x:%02x",
vif_name, addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
if (system(cmd) < 0)
{
Expand Down

0 comments on commit 6095733

Please # to comment.