From e1e87d71afb8b8e829918dd100497861e7532d83 Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 4 Dec 2020 14:45:19 +0100 Subject: [PATCH] hpsdrsim: clear HL2 field at beginning --- hpsdrsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpsdrsim.c b/hpsdrsim.c index 77377d2..d5735a7 100644 --- a/hpsdrsim.c +++ b/hpsdrsim.c @@ -212,7 +212,7 @@ int main(int argc, char *argv[]) struct sockaddr_in addr_from; unsigned int seed; - memzero(hl2addr, sizeof(hl2addr)); + memset(hl2addr, 0, sizeof(hl2addr)); uint32_t last_seqnum = 0xffffffff, seqnum; // sequence number of received packet int udp_retries=0; -- 2.45.2