From: Ulrich Drepper Date: Thu, 20 Jan 2000 07:06:34 +0000 (+0000) Subject: Correct size parameter of memset call. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b60b7b162de8bdf09a4688777db5b86b5a91c0be;p=thirdparty%2Fglibc.git Correct size parameter of memset call. --- diff --git a/linuxthreads_db/td_thr_getgregs.c b/linuxthreads_db/td_thr_getgregs.c index 549c7d8b837..a4d861970ea 100644 --- a/linuxthreads_db/td_thr_getgregs.c +++ b/linuxthreads_db/td_thr_getgregs.c @@ -1,5 +1,5 @@ /* Get a thread's general register set. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1999. @@ -35,7 +35,7 @@ td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs) /* If the thread already terminated we return all zeroes. */ if (pds.p_terminated) - memset (gregs, '\0', sizeof (gregs)); + memset (gregs, '\0', sizeof (prgregset_t)); /* Otherwise get the register content through the callback. */ else if (ps_lgetregs (th->th_ta_p->ph, pds.p_pid, gregs) != PS_OK) return TD_ERR;