diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-31 21:34:01 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-10-31 21:34:01 +0000 |
commit | c02fa54041a68c12107ec577770ff81329af3bef (patch) | |
tree | ac6d3ee86cd046eca0c09c2de43695b5f3116d69 /posix | |
parent | 242bfefc41f4cc06dcff88c5bd143cc43719a73a (diff) |
Updated to fedora-glibc-20081031T2102cvs/fedora-glibc-2_8_90-16
Diffstat (limited to 'posix')
-rw-r--r-- | posix/bits/unistd.h | 4 | ||||
-rw-r--r-- | posix/spawnattr_getschedparam.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h index efd7f75a50..e29b4cca46 100644 --- a/posix/bits/unistd.h +++ b/posix/bits/unistd.h @@ -1,5 +1,5 @@ /* Checking macros for unistd functions. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 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 @@ -267,7 +267,7 @@ __NTH (getgroups (int __size, __gid_t __list[])) { if (__bos (__list) != (size_t) -1) { - if (!__builtin_constant_p (__size)) + if (!__builtin_constant_p (__size) || __size < 0) return __getgroups_chk (__size, __list, __bos (__list)); if (__size * sizeof (__gid_t) > __bos (__list)) 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; } |