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

Diff for /src/usr.bin/pr/pr.c between version 1.26 and 1.27

version 1.26, 2008/04/18 20:18:21 version 1.27, 2009/02/07 17:51:22
Line 376 
Line 376 
     /*      /*
      * allocate page buffer       * allocate page buffer
      */       */
     if ((buf = malloc((unsigned)lines*mxlen)) == NULL) {      if ((buf = calloc((unsigned)lines, mxlen)) == NULL) {
         mfail();          mfail();
         return(1);          return(1);
     }      }

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27