diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-10-31 18:51:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-10-31 18:51:08 +0000 |
commit | 6f576bf61abca4e38c365e4d40cc59693c71e148 (patch) | |
tree | 45bd5d8af10dbc66767c1d3f54f6fdc45f0d5cee | |
parent | 45a8beb51c60506cda9d9fdeee05c21476dca0b0 (diff) | |
download | glibc-6f576bf61abca4e38c365e4d40cc59693c71e148.tar.gz glibc-6f576bf61abca4e38c365e4d40cc59693c71e148.tar.xz glibc-6f576bf61abca4e38c365e4d40cc59693c71e148.zip |
[BZ #6919]
2008-10-31 Ulrich Drepper <drepper@redhat.com> [BZ #6919] * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Fix length of copy operation.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | posix/spawnattr_getschedparam.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index cd2f6ed06e..c20954b053 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-31 Ulrich Drepper <drepper@redhat.com> + + [BZ #6919] + * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): + Fix length of copy operation. + 2008-10-02 Pierre Habouzit <madcoder@debian.org> * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall diff --git a/posix/spawnattr_getschedparam.c b/posix/spawnattr_getschedparam.c index f33b622b2b..f714b2cfb1 100644 --- a/posix/spawnattr_getschedparam.c +++ b/posix/spawnattr_getschedparam.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,7 +25,7 @@ posix_spawnattr_getschedparam (const posix_spawnattr_t *attr, struct sched_param *schedparam) { /* Copy the scheduling parameters. */ - memcpy (schedparam, &attr->__sp, sizeof (*attr)); + memcpy (schedparam, &attr->__sp, sizeof (attr->__sp)); return 0; } |