summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>1999-03-02 16:16:57 +0000
committerdcs <dcs@FreeBSD.org>1999-03-02 16:16:57 +0000
commitca008db062aa18592bcafcc2f1be24f194707637 (patch)
treebf05c875006e0482a8f60c0278315fe0181b24da /sys
parent9cf39d393cf26ccc5ea81a65a4d1472ecd653f2d (diff)
downloadFreeBSD-src-ca008db062aa18592bcafcc2f1be24f194707637.zip
FreeBSD-src-ca008db062aa18592bcafcc2f1be24f194707637.tar.gz
Don't treat empty lines as end-of-file in include(). (I can't
believe this bug is still here... :-( )
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/common/interp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/interp.c b/sys/boot/common/interp.c
index cc7f6ff..1e0c3c8 100644
--- a/sys/boot/common/interp.c
+++ b/sys/boot/common/interp.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: interp.c,v 1.14 1999/02/04 17:06:46 dcs Exp $
+ * $Id: interp.c,v 1.15 1999/02/22 13:12:37 dcs Exp $
*/
/*
* Simple commandline interpreter, toplevel and misc.
@@ -204,7 +204,7 @@ include(char *filename)
script = se = NULL;
line = 0;
- while (fgetstr(input, sizeof(input), fd) > 0) {
+ while (fgetstr(input, sizeof(input), fd) >= 0) {
line++;
#ifdef BOOT_FORTH
cp = input;
OpenPOWER on IntegriCloud