From: c vw Date: Fri, 4 Dec 2020 13:45:19 +0000 (+0100) Subject: hpsdrsim: clear HL2 field at beginning X-Git-Url: https://git.rkrishnan.org/%5B/frontends/reliability?a=commitdiff_plain;h=e1e87d71afb8b8e829918dd100497861e7532d83;p=pihpsdr.git hpsdrsim: clear HL2 field at beginning --- 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;