]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(get_elem): Assign pointer to new row to correct pool entry.
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 Jan 2000 10:50:05 +0000 (10:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 Jan 2000 10:50:05 +0000 (10:50 +0000)
rt/aio_misc.c

index fa3c75c150fc404226af1c88be22c69becb357e8..c6608df240af2066f1a673cdfb24da343685e8d5 100644 (file)
@@ -1,5 +1,5 @@
 /* Handle general operations.
-   Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -124,7 +124,7 @@ get_elem (void)
          if (new_row == NULL)
            return NULL;
 
-         pool[new_size / ENTRIES_PER_ROW] = new_row;
+         pool[new_size / ENTRIES_PER_ROW - 1] = new_row;
        }
 
       /* Put all the new entries in the freelist.  */