SCCS-vsn: usr.bin/pascal/libpc/DFDISPOSE.c 4.3
/* Copyright (c) 1982 Regents of the University of California */
/* Copyright (c) 1982 Regents of the University of California */
-static char sccsid[] = "@(#)DFDISPOSE.c 4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)DFDISPOSE.c 4.3 (Berkeley) %G%";
/*
* Close all active files within a dynamic record,
/*
* Close all active files within a dynamic record,
prev = next;
next = next->fchain;
}
prev = next;
next = next->fchain;
}
- while(next != FILNIL && next < end)
+ while(next != FILNIL && start <= next && next < end)
next = PFCLOSE(next, TRUE);
prev->fchain = next;
DISPOSE(var, size);
next = PFCLOSE(next, TRUE);
prev->fchain = next;
DISPOSE(var, size);