--- ray/src/util/glareval.c 1991/04/22 15:41:01 1.15 +++ ray/src/util/glareval.c 1991/06/26 13:35:16 1.18 @@ -20,7 +20,7 @@ static char SCCSid[] = "$SunId$ LBL"; #define vfork fork #endif -#define MAXSBUF 524268 /* maximum total size of scanline buffer */ +#define MAXSBUF 786432 /* maximum total size of scanline buffer */ #define HSIZE 317 /* size of scanline hash table */ #define NRETIRE 16 /* number of scanlines to retire at once */ @@ -342,7 +342,7 @@ char *av[]; dup2(p0[0], 0); close(p0[0]); } - if (p1[1] != 0) { /* connect p1 to stdout */ + if (p1[1] != 1) { /* connect p1 to stdout */ dup2(p1[1], 1); close(p1[1]); } @@ -477,7 +477,7 @@ initscans() /* initialize scanline buffers */ /* allocate scanline buffers */ scansize = sizeof(SCAN) + pxsiz*sizeof(COLR); #ifdef ALIGN - scansize = scansize+(sizeof(ALIGN)-1)) & ~(sizeof(ALIGN)-1); + scansize = scansize+(sizeof(ALIGN)-1) & ~(sizeof(ALIGN)-1); #endif i = MAXSBUF / scansize; /* compute number to allocate */ if (i > HSIZE)