projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include fixes
[unix-history]
/
usr
/
src
/
usr.sbin
/
cron
/
cron.c
diff --git
a/usr/src/usr.sbin/cron/cron.c
b/usr/src/usr.sbin/cron/cron.c
index
4817222
..
d3f88a4
100644
(file)
--- a/
usr/src/usr.sbin/cron/cron.c
+++ b/
usr/src/usr.sbin/cron/cron.c
@@
-1,12
+1,16
@@
-static char *sccsid = "@(#)cron.c 4.5 (Berkeley) %G%";
+#ifndef lint
+static char *sccsid = "@(#)cron.c 4.7 (Berkeley) %G%";
+#endif
+
#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
-#include <time.h>
+#include <
sys/
time.h>
#include <sys/stat.h>
#include <sys/stat.h>
-#define LISTS BUFSIZ
+#define LISTS (2*BUFSIZ)
+#define MAXLIN BUFSIZ
#define EXACT 100
#define ANY 101
#define EXACT 100
#define ANY 101
@@
-157,7
+161,7
@@
init()
cp = list;
loop:
cp = list;
loop:
- if(cp > list+listsize-
BUFSIZ
) {
+ if(cp > list+listsize-
MAXLIN
) {
char *olist;
listsize += LISTS;
olist = list;
char *olist;
listsize += LISTS;
olist = list;