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

Comparing ray/src/cal/rcalc.c (file contents):
Revision 1.13 by greg, Wed Jun 9 16:00:13 2004 UTC vs.
Revision 1.14 by greg, Mon Oct 11 10:02:15 2004 UTC

# Line 454 | Line 454 | int  output
454                          eputs(": cannot open\n");
455                          quit(1);
456                  }
457 <                res = read(fd, inpbuf+1, INBSIZ-1);
457 >                res = read(fd, inpbuf+2, INBSIZ-2);
458                  if (res <= 0 || res >= INBSIZ-1) {
459                          eputs(spec);
460                          if (res < 0)
# Line 466 | Line 466 | int  output
466                          quit(1);
467                  }
468                  close(fd);
469 <                (inptr=inpbuf+1)[res] = '\0';
469 >                (inptr=inpbuf+2)[res] = '\0';
470          }
471          f = &fmt;                               /* get fields */
472          while ((res = readfield(&inptr)) != F_NUL) {
# Line 632 | Line 632 | getrec(void)                           /* get next record from file */
632   {
633          int  eatline;
634          register struct field  *f;
635 <        
635 >
636          while (ipb.chr != EOF) {
637                  eatline = !igneol && ipb.chr != '\n';
638                  if (blnkeq)             /* beware of nbsynch() */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines