diff options
Diffstat (limited to 'usr.bin/mail/aux.c')
-rw-r--r-- | usr.bin/mail/aux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mail/aux.c b/usr.bin/mail/aux.c index 31038c8..f6f7211 100644 --- a/usr.bin/mail/aux.c +++ b/usr.bin/mail/aux.c @@ -295,7 +295,9 @@ struct sstack { FILE *s_file; /* File we were in. */ int s_cond; /* Saved state of conditionals */ int s_loading; /* Loading .mailrc, etc. */ -} sstack[NOFILE]; +}; +#define SSTACK_SIZE 64 /* XXX was NOFILE. */ +static struct sstack sstack[SSTACK_SIZE]; /* * Pushdown current input file and switch to a new one. @@ -315,7 +317,7 @@ source(arglist) perror(cp); return(1); } - if (ssp >= NOFILE - 1) { + if (ssp >= SSTACK_SIZE - 1) { printf("Too much \"sourcing\" going on.\n"); Fclose(fi); return(1); |