--- ray/src/common/readobj.c 1989/10/04 16:32:04 1.2 +++ ray/src/common/readobj.c 1990/09/06 23:32:43 1.4 @@ -19,7 +19,7 @@ static char SCCSid[] = "$SunId$ LBL"; #include OBJREC *objblock[MAXOBJBLK]; /* our objects */ -int nobjects = 0; /* # of objects */ +OBJECT nobjects = 0; /* # of objects */ readobj(input) /* read in an object file or stream */ @@ -105,7 +105,7 @@ FILE *fp; error(USER, errmsg); } objp->otype = objptr(alias)->otype; - bcopy(&objptr(alias)->oargs, &objp->oargs, sizeof(FUNARGS)); + copystruct(&objp->oargs, &objptr(alias)->oargs); } else if (readfargs(&objp->oargs, fp) < 0) { sprintf(errmsg, "(%s): bad arguments", name); objerror(objp, USER, errmsg);