--- ray/src/hd/rholo.c 2003/06/21 14:48:54 3.58 +++ ray/src/hd/rholo.c 2003/06/30 14:59:12 3.59 @@ -1,15 +1,17 @@ #ifndef lint -static const char RCSid[] = "$Id: rholo.c,v 3.58 2003/06/21 14:48:54 greg Exp $"; +static const char RCSid[] = "$Id: rholo.c,v 3.59 2003/06/30 14:59:12 schorsch Exp $"; #endif /* * Radiance holodeck generation controller */ -#include "rholo.h" -#include "random.h" #include #include +#include +#include "rholo.h" +#include "random.h" + #ifndef FRAGWARN #define FRAGWARN 20 /* fragmentation for warning (%) */ #endif @@ -531,8 +533,8 @@ PACKET *pl; while (pl != NULL) { p = pl; pl = p->next; p->next = NULL; if (p->nr > 0) { /* add to holodeck */ - bcopy((void *)p->ra, - (void *)hdnewrays(hdlist[p->hd],p->bi,p->nr), + memcpy( (void *)hdnewrays(hdlist[p->hd],p->bi,p->nr), + (void *)p->ra, p->nr*sizeof(RAYVAL)); if (outdev != NULL) /* display it */ disp_packet((PACKHEAD *)p);