off by one error (from karels@bsdi.com)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 7 Jan 1994 08:24:30 +0000 (00:24 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 7 Jan 1994 08:24:30 +0000 (00:24 -0800)
SCCS-vsn: sys/kern/kern_descrip.c 8.4

usr/src/sys/kern/kern_descrip.c

index 0e89873..72ebd61 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)kern_descrip.c      8.3 (Berkeley) %G%
+ *     @(#)kern_descrip.c      8.4 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -637,7 +637,7 @@ fdcopy(p)
                 * allowing the table to shrink.
                 */
                i = newfdp->fd_nfiles;
                 * allowing the table to shrink.
                 */
                i = newfdp->fd_nfiles;
-               while (i > 2 * NDEXTENT && i >= newfdp->fd_lastfile * 2)
+               while (i > 2 * NDEXTENT && i > newfdp->fd_lastfile * 2)
                        i /= 2;
                MALLOC(newfdp->fd_ofiles, struct file **, i * OFILESIZE,
                    M_FILEDESC, M_WAITOK);
                        i /= 2;
                MALLOC(newfdp->fd_ofiles, struct file **, i * OFILESIZE,
                    M_FILEDESC, M_WAITOK);