ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcompos.c
(Generate patch)

Comparing ray/src/px/pcompos.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:49:23 1989 UTC vs.
Revision 1.3 by greg, Mon Jul 24 09:12:18 1989 UTC

# Line 173 | Line 173 | compos()                               /* composite pictures */
173          int  y;
174          register int  x, i;
175  
176 <        scanin = (COLR *)malloc((xmax-xmin)*sizeof(COLR)) - xmin;
177 <        scanin = (COLR *)malloc((xmax-xmin)*sizeof(COLR)) - xmin;
176 >        scanin = (COLR *)malloc((xmax-xmin)*sizeof(COLR));
177          if (scanin == NULL)
178                  goto memerr;
179          scanin -= xmin;
# Line 193 | Line 192 | compos()                               /* composite pictures */
192                                  continue;
193                          if (freadcolrs(scanin+input[i].xloc,
194                                          input[i].xres, input[i].fp) < 0) {
195 <                                fprintf(stderr, "%s: read error\n",
196 <                                                input[i].name);
195 >                                fprintf(stderr, "%s: read error (y==%d)\n",
196 >                                                input[i].name,
197 >                                                y-input[i].yloc);
198                                  quit(1);
199                          }
200                          if (y >= ysiz)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines