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

Comparing ray/src/gen/xform.c (file contents):
Revision 1.2 by greg, Tue Mar 14 11:36:59 1989 UTC vs.
Revision 1.3 by greg, Sat Apr 22 14:51:02 1989 UTC

# Line 208 | Line 208 | FILE  *fin;
208          FILE  *pin;
209          char  buf[512];
210  
211        buf[0] = '\0';
211          fgets(buf, sizeof(buf), fin);
212 <        if (buf[0] && buf[strlen(buf)-1] == '\n')
212 >        if (buf[strlen(buf)-1] == '\n')
213                  buf[strlen(buf)-1] = '\0';
214          if ((pin = popen(buf+1, "r")) == NULL) {
215                  fprintf(stderr, "%s: (%s): cannot execute \"%s\"\n",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines