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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.10 by greg, Thu Apr 1 11:21:18 1993 UTC vs.
Revision 2.11 by greg, Fri Apr 2 09:10:48 1993 UTC

# Line 696 | Line 696 | char   *prog, *args;
696          cp = combuf;
697          wp = argv;
698          for ( ; ; ) {
699 <                while (isspace(*cp)) cp++;
700 <                if (!*cp) break;
701 <                *wp++ = cp;
702 <                while (!isspace(*cp))
703 <                        if (!*cp++) goto done;
704 <                *cp++ = '\0';
699 >                while (isspace(*cp))    /* nullify spaces */
700 >                        *cp++ = '\0';
701 >                if (!*cp)               /* all done? */
702 >                        break;
703 >                *wp++ = cp;             /* add argument to list */
704 >                while (*++cp && !isspace(*cp))
705 >                        ;
706          }
706 done:
707          *wp = NULL;
708                                                  /* start process */
709          if ((rval = open_process(PDesc, argv)) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines