about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-09 23:10:46 +0000
committerRoland McGrath <roland@gnu.org>2002-11-09 23:10:46 +0000
commit55c303acb873e478540042612f1028139454d4a4 (patch)
tree3a8c828d4d54a8db32af4140ed42bf0f85063c6c /sysdeps/mach
parent9372c9582451c4d40152769a0aeba35e58942b59 (diff)
downloadglibc-55c303acb873e478540042612f1028139454d4a4.tar.gz
glibc-55c303acb873e478540042612f1028139454d4a4.tar.xz
glibc-55c303acb873e478540042612f1028139454d4a4.zip
2002-11-09 Marcus Brinkmann <marcus@gnu.org>
        * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
        error in range calculation.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/i386/ioperm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/i386/ioperm.c b/sysdeps/mach/hurd/i386/ioperm.c
index 39139bc565..be243d1ac9 100644
--- a/sysdeps/mach/hurd/i386/ioperm.c
+++ b/sysdeps/mach/hurd/i386/ioperm.c
@@ -36,7 +36,7 @@ ioperm (unsigned long int from, unsigned long int num, int turn_on)
   if (! err)
     {
       io_perm_t perm;
-      err = __i386_io_perm_create (devmaster, from, from + num, &perm);
+      err = __i386_io_perm_create (devmaster, from, from + num - 1, &perm);
       __mach_port_deallocate (__mach_task_self (), devmaster);
       if (! err)
 	{