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

Diff for /src/usr.bin/rs/rs.c between version 1.24 and 1.25

version 1.24, 2014/10/08 04:07:24 version 1.25, 2015/08/20 22:32:41
Line 268 
Line 268 
                         *ep = *(ep - nelem);                          *ep = *(ep - nelem);
                 nelem = lp - elem;                  nelem = lp - elem;
         }          }
         if (!(colwidths = (short *) calloc(ocols, sizeof(short))))          if (!(colwidths = calloc(ocols, sizeof(short))))
                 errx(1, "malloc:  No gutter space");                  errx(1, "malloc:  No gutter space");
         if (flags & SQUEEZE) {          if (flags & SQUEEZE) {
                 if (flags & TRANSPOSE)                  if (flags & TRANSPOSE)
Line 321 
Line 321 
                         printf(" %d line %d\n", curlen, irows);                          printf(" %d line %d\n", curlen, irows);
         }          }
         if (!putlength && endblock - curline < BUFSIZ) {   /* need storage */          if (!putlength && endblock - curline < BUFSIZ) {   /* need storage */
                 if (!(curline = (char *) malloc(BSIZE)))                  if (!(curline = malloc(BSIZE)))
                         errx(1, "File too large");                          errx(1, "File too large");
                 endblock = curline + BSIZE;                  endblock = curline + BSIZE;
         }          }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25