MFC: Include the size of the DL_serpath structures in the total size used

in the RTLD_DI_SERINFOSIZE and RTLD_DI_SERINFO requests.
This commit is contained in:
jhb 2005-11-28 19:19:39 +00:00
parent 51e319ef1f
commit 4d00ca61c0

View File

@ -1968,7 +1968,7 @@ fill_search_info(const char *dir, size_t dirlen, void *param)
if (arg->request == RTLD_DI_SERINFOSIZE) {
arg->serinfo->dls_cnt ++;
arg->serinfo->dls_size += dirlen + 1;
arg->serinfo->dls_size += sizeof(Dl_serpath) + dirlen + 1;
} else {
struct dl_serpath *s_entry;