]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
hpsdrsim: clear HL2 field at beginning
authorc vw <dl1ycf@darc.de>
Fri, 4 Dec 2020 13:45:19 +0000 (14:45 +0100)
committerc vw <dl1ycf@darc.de>
Fri, 4 Dec 2020 13:45:19 +0000 (14:45 +0100)
hpsdrsim.c

index 77377d28609e595ade4dda4398afe40e9db1f68f..d5735a78dc85038cf28506657d6e4f4eef26e9b6 100644 (file)
@@ -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;