# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |