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;