summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2021-08-11 09:10:39 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2021-08-11 09:10:39 +0100
commita1729deed3a7d456c5568c0a81450938099e66ae (patch)
treeef77a67289a714d82d097e9b7a9d6f2103a616c0
parentfc64b97cd51c7bd3f9bca955952d6d9b3ec7ef95 (diff)
downloaddnsmasq-2.86test7.tar.gz
Fiz sizeof() confusion in 527c3c7d0d3bb4bf5fad699f10cf0d1a45a54692v2.86test7
-rw-r--r--src/dhcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index a50568b..e500bc2 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -524,8 +524,8 @@ static void guess_range_netmask(struct in_addr addr, struct in_addr netmask)
!(is_same_net(addr, context->start, netmask) &&
is_same_net(addr, context->end, netmask)))
{
- inet_ntop(AF_INET, &context->start, daemon->dhcp_buff, sizeof(DHCP_BUFF_SZ));
- inet_ntop(AF_INET, &context->end, daemon->dhcp_buff2, sizeof(DHCP_BUFF_SZ));
+ inet_ntop(AF_INET, &context->start, daemon->dhcp_buff, DHCP_BUFF_SZ);
+ inet_ntop(AF_INET, &context->end, daemon->dhcp_buff2, DHCP_BUFF_SZ);
inet_ntop(AF_INET, &netmask, daemon->addrbuff, ADDRSTRLEN);
my_syslog(MS_DHCP | LOG_WARNING, _("DHCP range %s -- %s is not consistent with netmask %s"),
daemon->dhcp_buff, daemon->dhcp_buff2, daemon->addrbuff);