-/* $OpenBSD: fsort.c,v 1.1 1997/01/20 19:39:51 millert Exp $ */
+/* $OpenBSD: fsort.c,v 1.2 1997/01/22 05:49:19 millert Exp $ */
/*-
* Copyright (c) 1993
#if 0
static char sccsid[] = "@(#)fsort.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: fsort.c,v 1.1 1997/01/20 19:39:51 millert Exp $";
+static char rcsid[] = "$OpenBSD: fsort.c,v 1.2 1997/01/22 05:49:19 millert Exp $";
#endif
#endif /* not lint */
if (!SINGL_FLD)
linebuf = malloc(MAXLLEN);
}
- bufend = buffer + BUFSIZE;
+ bufend = buffer + BUFSIZE - 1;
if (binno >= 0) {
tfiles.top = infiles.top + nfiles;
get = getnext;