aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads_db/td_thr_tsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads_db/td_thr_tsd.c')
-rw-r--r--linuxthreads_db/td_thr_tsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads_db/td_thr_tsd.c b/linuxthreads_db/td_thr_tsd.c
index 95dec466c2..978dc5e524 100644
--- a/linuxthreads_db/td_thr_tsd.c
+++ b/linuxthreads_db/td_thr_tsd.c
@@ -51,7 +51,7 @@ td_thr_tsd (const td_thrhandle_t *th, const thread_key_t tk, void **data)
return TD_BADKEY;
/* Get the key entry. */
- if (ps_pdread (th->th_ta_p->ph, keys, &key,
+ if (ps_pdread (th->th_ta_p->ph, &keys[tk], &key,
sizeof (struct pthread_key_struct)) != PS_OK)
return TD_ERR; /* XXX Other error value? */