summaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_setguardsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_attr_setguardsize.c')
-rw-r--r--src/thread/pthread_attr_setguardsize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_attr_setguardsize.c b/src/thread/pthread_attr_setguardsize.c
index 9f21d247..1c5c60ac 100644
--- a/src/thread/pthread_attr_setguardsize.c
+++ b/src/thread/pthread_attr_setguardsize.c
@@ -3,6 +3,6 @@
int pthread_attr_setguardsize(pthread_attr_t *a, size_t size)
{
if (size > SIZE_MAX/8) return EINVAL;
- a->_a_guardsize = size - DEFAULT_GUARD_SIZE;
+ a->_a_guardsize = size;
return 0;
}