summaryrefslogtreecommitdiff
path: root/lib/libthread_db/libpthread_db.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-04-20 17:54:59 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-04-20 17:54:59 +0000
commit171fcb3069dd866d6942d15b7030cae22e5a814e (patch)
tree68513c43c1b0be132373bde685b48ac9a85f13f0 /lib/libthread_db/libpthread_db.c
parentfebd54ebb7317f4e0fb6264bd181782129564cd1 (diff)
Notes
Diffstat (limited to 'lib/libthread_db/libpthread_db.c')
-rw-r--r--lib/libthread_db/libpthread_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c
index 55fef7128e40..66b813ec50d8 100644
--- a/lib/libthread_db/libpthread_db.c
+++ b/lib/libthread_db/libpthread_db.c
@@ -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 *
- sizeof(struct pt_map));
+ 2 * sizeof(struct pt_map));
first = ta->map_len;
ta->map = new;
ta->map_len *= 2;