From 4ab57093daf0429cc04a2a6bc534c420bfdd9673 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 23 Mar 2025 01:53:03 +0000 Subject: [PATCH] Match the type in sizeof with the actual declared type --- nping/NpingOps.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nping/NpingOps.cc b/nping/NpingOps.cc index df23f93a9..5b13c9554 100644 --- a/nping/NpingOps.cc +++ b/nping/NpingOps.cc @@ -253,7 +253,7 @@ NpingOps::NpingOps() { icmp_trans_time=0; icmp_trans_time_set=false; - memset( icmp_advert_entry_addr, 0, sizeof(u32)*MAX_ICMP_ADVERT_ENTRIES ); + memset( icmp_advert_entry_addr, 0, sizeof(struct in_addr)*MAX_ICMP_ADVERT_ENTRIES ); memset( icmp_advert_entry_pref, 0, sizeof(u32)*MAX_ICMP_ADVERT_ENTRIES ); icmp_advert_entry_count=0; icmp_advert_entry_set=false;