From 337cd636a17559b7fba33c480759a4e6187e0647 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 17 Dec 2004 10:09:19 +0000 Subject: Updated to fedora-glibc-20041217T0906 --- nptl/tst-context1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nptl/tst-context1.c') diff --git a/nptl/tst-context1.c b/nptl/tst-context1.c index 1a019ad000..fcbeadeea0 100644 --- a/nptl/tst-context1.c +++ b/nptl/tst-context1.c @@ -37,7 +37,7 @@ typedef struct { unsigned long guard[3]; } tst_context_t; -static char stacks[N][PTHREAD_STACK_MIN]; +static char stacks[N][2 * PTHREAD_STACK_MIN]; static tst_context_t ctx[N][2]; static volatile int failures; @@ -110,7 +110,7 @@ tf (void *arg) printf ("%d: %s: before makecontext\n", n, __FUNCTION__); ctx[n][1].uctx.uc_stack.ss_sp = stacks[n]; - ctx[n][1].uctx.uc_stack.ss_size = PTHREAD_STACK_MIN; + ctx[n][1].uctx.uc_stack.ss_size = sizeof (stacks[n]); ctx[n][1].uctx.uc_link = &ctx[n][0].uctx; makecontext (&ctx[n][1].uctx, (void (*) (void)) fct, 1, (long int) n); -- cgit 1.4.1