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

Comparing ray/src/common/wordfile.c (file contents):
Revision 2.19 by greg, Wed Mar 23 18:17:46 2016 UTC vs.
Revision 2.20 by greg, Wed Apr 27 17:26:45 2016 UTC

# Line 41 | Line 41 | wordfile(                      /* get words from fname, put in words */
41          words[0] = NULL;
42          while (nargs > 1 && (n += read(fd, buf+n, MAXWLEN-n)) > 0) {
43                  int     crem = 0;
44 <                if (n >= MAXWLEN)               /* still something left? */
44 >                if (n > MAXWLEN/2)              /* check for mid-word end */
45                          while (!isspace(buf[--n])) {
46                                  if (n <= 0)     /* one long word! */
47                                          goto done;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines