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

Diff for /src/usr.bin/tail/read.c between version 1.18 and 1.19

version 1.18, 2017/02/01 16:21:12 version 1.19, 2017/02/01 20:21:19
Line 169 
Line 169 
                         lines = reallocarray(lines, nlineno, sizeof(*lines));                          lines = reallocarray(lines, nlineno, sizeof(*lines));
                         if (lines == NULL)                          if (lines == NULL)
                                 err(1, NULL);                                  err(1, NULL);
                         bzero(lines + recno, nlineno - lineno);                          bzero(lines + recno,
                               (nlineno - lineno) * sizeof(*lines));
                         lineno = nlineno;                          lineno = nlineno;
                 }                  }
                 if (ch == '\n') {                  if (ch == '\n') {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19