diff --git a/usr.bin/sort/fsort.c b/usr.bin/sort/fsort.c index 0847a5686e7f..ee9e485f85a6 100644 --- a/usr.bin/sort/fsort.c +++ b/usr.bin/sort/fsort.c @@ -1,4 +1,4 @@ -/* $NetBSD: fsort.c,v 1.20 2001/05/15 11:49:25 jdolecek Exp $ */ +/* $NetBSD: fsort.c,v 1.21 2002/09/30 05:09:25 enami Exp $ */ /*- * Copyright (c) 1993 @@ -47,7 +47,7 @@ #include "fsort.h" #ifndef lint -__RCSID("$NetBSD: fsort.c,v 1.20 2001/05/15 11:49:25 jdolecek Exp $"); +__RCSID("$NetBSD: fsort.c,v 1.21 2002/09/30 05:09:25 enami Exp $"); __SCCSID("@(#)fsort.c 8.1 (Berkeley) 6/6/93"); #endif /* not lint */ @@ -204,7 +204,8 @@ fsort(binno, depth, top, filelist, nfiles, outfp, ftbl) fstack[base + ntfiles].fp = ftmp(); fmerge(0, MSTART, filelist, - mfct, geteasy, fstack[base].fp, + mfct, geteasy, + fstack[base + ntfiles].fp, putrec, ftbl); ntfiles++; mfct = 0;