[BACK]Return to spellprog.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / spell

Diff for /src/usr.bin/spell/spellprog.c between version 1.14 and 1.15

version 1.14, 2019/03/10 20:45:11 version 1.15, 2021/10/24 21:24:17
Line 281 
Line 281 
         if ((wlists = calloc(sizeof(struct wlist), (argc + 1))) == NULL)          if ((wlists = calloc(sizeof(struct wlist), (argc + 1))) == NULL)
                 err(1, "malloc");                  err(1, "malloc");
         for (i = 0; argc--; i++) {          for (i = 0; argc--; i++) {
                 wlists[i].fd = open(argv[i], O_RDONLY, 0);                  wlists[i].fd = open(argv[i], O_RDONLY);
                 if (wlists[i].fd == -1 || fstat(wlists[i].fd, &sb) != 0)                  if (wlists[i].fd == -1 || fstat(wlists[i].fd, &sb) != 0)
                         err(1, "%s", argv[i]);                          err(1, "%s", argv[i]);
                 if (sb.st_size > SIZE_MAX)                  if (sb.st_size > SIZE_MAX)

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15