]> git.ozlabs.org Git - ppp.git/blobdiff - pppdump/bsd-comp.c
use memset not bzero
[ppp.git] / pppdump / bsd-comp.c
index b08f2b781e4e86d672f7340d6f4168cf559bd955..17c1e3bc1136a78f46c2b6530051689edad9120b 100644 (file)
  */
 
 /*
- * $Id: bsd-comp.c,v 1.1 1999/03/23 03:21:57 paulus Exp $
+ * $Id: bsd-comp.c,v 1.3 1999/04/16 11:35:59 paulus Exp $
  */
 
 #include <sys/types.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include "ppp_defs.h"
 #include "ppp-comp.h"
@@ -325,7 +326,7 @@ bsd_alloc(options, opt_len, decomp)
     db = (struct bsd_db *) malloc(newlen);
     if (!db)
        return NULL;
-    bzero(db, sizeof(*db) - sizeof(db->dict));
+    memset(db, 0, sizeof(*db) - sizeof(db->dict));
 
     if (!decomp) {
        db->lens = NULL;