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

Diff for /src/usr.bin/cap_mkdb/cap_mkdb.c between version 1.12 and 1.13

version 1.12, 2003/09/21 22:32:02 version 1.13, 2003/09/26 21:25:34
Line 174 
Line 174 
                  */                   */
                 len = strlen(bp);                  len = strlen(bp);
                 if (bplen <= len + 2) {                  if (bplen <= len + 2) {
                         bplen += MAX(256, len + 2);                          int newbplen = bplen + MAX(256, len + 2);
                         if ((data.data = realloc(data.data, bplen)) == NULL)                          void *newdata;
   
                           if ((newdata = realloc(data.data, newbplen)) == NULL)
                                 err(1, NULL);                                  err(1, NULL);
                           data.data = newdata;
                           bplen = newbplen;
                 }                  }
   
                 /* Find the end of the name field. */                  /* Find the end of the name field. */

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