Return to cap_mkdb.c CVS log | Up to [local] / src / usr.bin / cap_mkdb |
version 1.12, 2003/09/21 22:32:02 | version 1.13, 2003/09/26 21:25:34 | ||
---|---|---|---|
|
|
||
*/ | */ | ||
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. */ |