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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.41 by greg, Wed Jul 10 13:33:56 1996 UTC vs.
Revision 2.42 by greg, Thu Jan 2 09:37:13 1997 UTC

# Line 144 | Line 144 | char  *afile;
144                  pos += (long)nambvals*AMBVALSIZ;
145                  flen = lseek(fileno(ambfp), 0L, 2);
146                  if (flen != pos) {
147 <                        error(WARNING,
147 >                        sprintf(errmsg,
148                          "ignoring last %ld values in ambient file (corrupted)",
149                                          (flen - pos)/AMBVALSIZ);
150 +                        error(WARNING, errmsg);
151                          fseek(ambfp, pos, 0);
152                          ftruncate(fileno(ambfp), pos);
153                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines