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.17 by greg, Tue Mar 22 15:14:39 2016 UTC vs.
Revision 2.18 by greg, Wed Mar 23 15:14:33 2016 UTC

# Line 57 | Line 57 | wordfile(                      /* get words from fname, put in words */
57                          wrdcnt = -1;            /* memory error */
58                          break;
59                  }
60 <                words += n;
61 <                nargs -= n;
60 >                words += n; nargs -= n;
61                  wrdcnt += n;
62                  if ((n = crem) > 0)             /* move remainder */
63 <                        strncpy(buf, buf+MAXWLEN-crem, crem);
63 >                        memmove(buf, buf+MAXWLEN-crem, crem);
64          }
65   done:
66          close(fd);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines