diff --git a/src/lib/empthread/pthread.c b/src/lib/empthread/pthread.c index f6d63b77..1198a0f4 100644 --- a/src/lib/empthread/pthread.c +++ b/src/lib/empthread/pthread.c @@ -223,7 +223,7 @@ empth_create(int prio, void (*entry)(void *), int size, int flags, goto bad; } if (size < PTHREAD_STACK_MIN) - size = PTHREAD_STACK_MIN + 1; + size = PTHREAD_STACK_MIN; pthread_attr_setstacksize(&attr, size); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);