version 1.38, 2006/05/31 18:24:55 |
version 1.39, 2006/07/27 03:28:36 |
|
|
if (depth != 0 && len > depth) |
if (depth != 0 && len > depth) |
len = depth; |
len = depth; |
|
|
tmp = xrealloc(ndst->rn_id, len, sizeof(len)); |
tmp = xrealloc(ndst->rn_id, len, sizeof(*(nsrc->rn_id))); |
ndst->rn_id = tmp; |
ndst->rn_id = tmp; |
ndst->rn_len = len; |
ndst->rn_len = len; |
/* Overflow checked in xrealloc(). */ |
/* Overflow checked in xrealloc(). */ |
(void)memcpy(ndst->rn_id, nsrc->rn_id, len * sizeof(len)); |
(void)memcpy(ndst->rn_id, nsrc->rn_id, |
|
len * sizeof(*(nsrc->rn_id))); |
} |
} |
|
|
/* |
/* |