From 629d9edba148dcf3293ee108ffb71dfbf3c4cb2c Mon Sep 17 00:00:00 2001 From: thib Date: Sun, 21 Sep 2008 17:40:34 +0000 Subject: [PATCH] Fixed minor bug: we used to accept max_entries+1 --- fileconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fileconf.c b/fileconf.c index 5ed2e7e..157a1e4 100644 --- a/fileconf.c +++ b/fileconf.c @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.81 2007-11-07 09:16:40 thib Exp $ */ + /* $Id: fileconf.c,v 1.82 2008-09-21 17:40:34 thib Exp $ */ #include "fcrontab.h" @@ -194,7 +194,7 @@ read_file(char *filename) /* max_lines acts here as a security counter to avoid endless loop. */ max_lines = (max_entries * 10) + 10; - while ( entries <= max_entries && line <= max_lines ) { + while ( entries < max_entries && line <= max_lines ) { ret = get_line(buf, sizeof(buf), file); -- 2.40.0