Skip to content

Commit

Permalink
[BZ #6919]
Browse files Browse the repository at this point in the history
2008-10-31  Ulrich Drepper  <drepper@redhat.com>
	[BZ #6919]
	* posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
	Fix length of copy operation.
  • Loading branch information
Ulrich Drepper committed Oct 31, 2008
1 parent 45a8beb commit 6f576bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions posix/spawnattr_getschedparam.c
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
}

0 comments on commit 6f576bf

Please sign in to comment.