--- ray/src/util/ranimove2.c 2003/02/25 02:47:24 3.2 +++ ray/src/util/ranimove2.c 2003/06/30 14:59:13 3.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ranimove2.c,v 3.2 2003/02/25 02:47:24 greg Exp $"; +static const char RCSid[] = "$Id: ranimove2.c,v 3.3 2003/06/30 14:59:13 schorsch Exp $"; #endif /* * ranimove2.c @@ -11,6 +11,8 @@ static const char RCSid[] = "$Id: ranimove2.c,v 3.2 20 #include "copyright.h" +#include + #include "ranimove.h" #include "random.h" @@ -36,7 +38,7 @@ refine_first() /* initial refinement pass */ printf("\tFirst refinement pass..."); fflush(stdout); } - bzero((void *)esamp, sizeof(int)*hres*vres); + memset((void *)esamp, '\0', sizeof(int)*hres*vres); /* * In our initial pass, we look for lower error pixels from * the same objects in the previous frame, and copy them here. @@ -294,7 +296,7 @@ conspicuity() /* compute conspicuous error map */ int fx, fy; /* reuse previous z-buffer */ cerrmap = (float *)zprev; - bzero((void *)cerrmap, sizeof(float)*hres*vres); + memset((void *)cerrmap, '\0', sizeof(float)*hres*vres); cerrzero = 1; /* compute base pixel frequency */ pixel_deg = .5*(hres/vw.horiz + vres/vw.vert);