Don't allow a step size of 0 (leading to an infinite loop). Have
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Jul 2004 15:29:49 +0000 (15:29 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 Jul 2004 15:29:49 +0000 (15:29 +0000)
commitc41aad46a5e009dc09728fcf0f1fa1f4d8779241
treeebb2e9462fc58aa04280dd500b883dba60d0b789
parenta08a0416b8242b9a187ca9fe7f33ae4562bdcfb6
Don't allow a step size of 0 (leading to an infinite loop).  Have
get_number() return an error if the parsed string is 0 length.

FreeBSD-PR: 68683
Obtained from: OpenBSD
Submitted-by: Xin LI <delphij@frontfree.net>
usr.sbin/cron/lib/entry.c