From: Ulrich Drepper Date: Sat, 29 Jan 2000 10:50:05 +0000 (+0000) Subject: (get_elem): Assign pointer to new row to correct pool entry. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f532a7c3f5a27b2dbeb5b1b5e6bc8636c22e3594;p=thirdparty%2Fglibc.git (get_elem): Assign pointer to new row to correct pool entry. --- diff --git a/rt/aio_misc.c b/rt/aio_misc.c index fa3c75c150f..c6608df240a 100644 --- a/rt/aio_misc.c +++ b/rt/aio_misc.c @@ -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 , 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. */