version 1.2, 2006/04/29 05:31:28 |
version 1.3, 2006/07/27 03:17:10 |
|
|
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))); |
} |
} |
|
|
/* |
/* |