diff options
Diffstat (limited to 'libpthread/sysdeps/generic/pt-attr-getschedparam.c')
-rw-r--r-- | libpthread/sysdeps/generic/pt-attr-getschedparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/sysdeps/generic/pt-attr-getschedparam.c b/libpthread/sysdeps/generic/pt-attr-getschedparam.c index 25afebd0..6c3f15be 100644 --- a/libpthread/sysdeps/generic/pt-attr-getschedparam.c +++ b/libpthread/sysdeps/generic/pt-attr-getschedparam.c @@ -26,6 +26,6 @@ int pthread_attr_getschedparam (const pthread_attr_t *attr, struct sched_param *param) { - *param = attr->schedparam; + memcpy (param, &attr->schedparam, sizeof *param); return 0; } |