X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppdump%2Fbsd-comp.c;h=17c1e3bc1136a78f46c2b6530051689edad9120b;hb=b87d00d8a7fb49857175ee79f0327f382386901b;hp=b08f2b781e4e86d672f7340d6f4168cf559bd955;hpb=f905a2633b5676a35078bcdcb392e66c943ead66;p=ppp.git diff --git a/pppdump/bsd-comp.c b/pppdump/bsd-comp.c index b08f2b7..17c1e3b 100644 --- a/pppdump/bsd-comp.c +++ b/pppdump/bsd-comp.c @@ -38,10 +38,11 @@ */ /* - * $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 +#include #include #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;