diff options
Diffstat (limited to 'libpthread/sysdeps/generic/pt-attr-setschedparam.c')
-rw-r--r-- | libpthread/sysdeps/generic/pt-attr-setschedparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/sysdeps/generic/pt-attr-setschedparam.c b/libpthread/sysdeps/generic/pt-attr-setschedparam.c index 18a575ec..5459f108 100644 --- a/libpthread/sysdeps/generic/pt-attr-setschedparam.c +++ b/libpthread/sysdeps/generic/pt-attr-setschedparam.c @@ -30,7 +30,7 @@ pthread_attr_setschedparam (pthread_attr_t *attr, if (memcmp (param, &__pthread_default_attr.schedparam, sizeof *param) == 0) { - attr->schedparam = *param; + memcpy (&attr->schedparam, param, sizeof *param); return 0; } |