]> git.ozlabs.org Git - ppp.git/blobdiff - pppdump/bsd-comp.c
Update READMEs etc. for the forthcoming ppp-2.4.5 release
[ppp.git] / pppdump / bsd-comp.c
index b08f2b781e4e86d672f7340d6f4168cf559bd955..141332665bd85a965f2540185b4e68ff23095293 100644 (file)
  */
 
 /*
- * $Id: bsd-comp.c,v 1.1 1999/03/23 03:21:57 paulus Exp $
+ * $Id: bsd-comp.c,v 1.4 2004/01/17 05:47:55 carlsonj Exp $
  */
 
 #include <sys/types.h>
+#include <stdio.h>
+#include <stddef.h>
 #include <stdlib.h>
+#include <string.h>
 #include "ppp_defs.h"
 #include "ppp-comp.h"
 
@@ -325,7 +328,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;