--- ray/src/hd/rholo4.c 1998/12/18 11:56:11 3.23 +++ ray/src/hd/rholo4.c 1999/01/04 17:48:30 3.25 @@ -1,4 +1,4 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ +/* Copyright (c) 1999 Silicon Graphics, Inc. */ #ifndef lint static char SCCSid[] = "$SunId$ SGI"; @@ -28,8 +28,8 @@ static FILE *dpout; disp_open(dname) /* open the named display driver */ char *dname; { - char buf[128], fd0[8], fd1[8], *cmd[5], *ofn; - int i, n; + char buf[sizeof(HDGRID)+512], fd0[8], fd1[8], *cmd[5], *sfn; + int i, n, len; /* get full display program name */ #ifdef DEVPATH sprintf(buf, "%s/%s%s", DEVPATH, dname, HDSUF); @@ -68,11 +68,17 @@ char *dname; /* write out hologram grids & octrees */ for (i = 0; hdlist[i] != NULL; i++) { bcopy((char *)hdlist[i], buf, sizeof(HDGRID)); - n = vdef(OSECTION); - ofn = i