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

Diff for /src/usr.bin/file/Attic/ascmagic.c between version 1.11 and 1.12

version 1.11, 2009/10/27 23:59:37 version 1.12, 2014/05/18 17:50:11
Line 101 
Line 101 
         while (nbytes > 1 && buf[nbytes - 1] == '\0')          while (nbytes > 1 && buf[nbytes - 1] == '\0')
                 nbytes--;                  nbytes--;
   
         if ((nbuf = calloc(1, (nbytes + 1) * sizeof(nbuf[0]))) == NULL)          if ((nbuf = calloc((nbytes + 1), sizeof(nbuf[0]))) == NULL)
                 goto done;                  goto done;
         if ((ubuf = calloc(1, (nbytes + 1) * sizeof(ubuf[0]))) == NULL)          if ((ubuf = calloc((nbytes + 1), sizeof(ubuf[0]))) == NULL)
                 goto done;                  goto done;
   
         /*          /*

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12