=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/newsyslog/newsyslog.c,v retrieving revision 1.70 retrieving revision 1.71 diff -c -r1.70 -r1.71 *** src/usr.bin/newsyslog/newsyslog.c 2003/06/09 20:43:44 1.70 --- src/usr.bin/newsyslog/newsyslog.c 2003/06/10 22:58:45 1.71 *************** *** 1,4 **** ! /* $OpenBSD: newsyslog.c,v 1.70 2003/06/09 20:43:44 millert Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Todd C. Miller --- 1,4 ---- ! /* $OpenBSD: newsyslog.c,v 1.71 2003/06/10 22:58:45 millert Exp $ */ /* * Copyright (c) 1999, 2002, 2003 Todd C. Miller *************** *** 68,74 **** */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.70 2003/06/09 20:43:44 millert Exp $"; #endif /* not lint */ #ifndef CONF --- 68,74 ---- */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.71 2003/06/10 22:58:45 millert Exp $"; #endif /* not lint */ #ifndef CONF *************** *** 568,574 **** q = parse = missing_field(sob(++parse), errline, lineno); *(parse = son(parse)) = '\0'; l = strtol(q, &ep, 10); ! if (l <= 0 || l >= INT_MAX) errx(1, "%s:%d: interval out of range: %s", conf, lineno, q); working->hours = (int)l; --- 568,574 ---- q = parse = missing_field(sob(++parse), errline, lineno); *(parse = son(parse)) = '\0'; l = strtol(q, &ep, 10); ! if (l < 0 || l >= INT_MAX) errx(1, "%s:%d: interval out of range: %s", conf, lineno, q); working->hours = (int)l;