libpthread_db: undo the memset size change.

I inadvertedly soubled the size of the memset without noticing the
start address had changed. The size for the memset in pt_map_thread()
shouldn't actually match the reallocarray() so undo that part of r317200.

This is a re-commit of r317201 to clarify the log.

X-MFC with:	r317200
This commit is contained in:
Pedro F. Giffuni 2017-04-20 17:58:27 +00:00
parent 171fcb3069
commit 3876a56282
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317203

View file

@ -100,7 +100,7 @@ pt_map_thread(const td_thragent_t *const_ta, psaddr_t pt, enum pt_type type)
if (new == NULL)
return (-1);
memset(new + ta->map_len, '\0', ta->map_len *
2 * sizeof(struct pt_map));
sizeof(struct pt_map));
first = ta->map_len;
ta->map = new;
ta->map_len *= 2;