diff options
author | thepish <thepish@FreeBSD.org> | 1998-10-10 09:58:20 +0000 |
---|---|---|
committer | thepish <thepish@FreeBSD.org> | 1998-10-10 09:58:20 +0000 |
commit | baece423c7edaa616079760a7a4c8602a608e68d (patch) | |
tree | 7a7bb8a08e738d265239042fd71c7affda0210a8 /usr.bin/mail/lex.c | |
parent | bcaad08a6991f0785956d31ba4016d0a7cc48687 (diff) | |
download | FreeBSD-src-baece423c7edaa616079760a7a4c8602a608e68d.zip FreeBSD-src-baece423c7edaa616079760a7a4c8602a608e68d.tar.gz |
PR: bin/8250
protect against buffer overruns in mail temporary files.
Diffstat (limited to 'usr.bin/mail/lex.c')
-rw-r--r-- | usr.bin/mail/lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mail/lex.c b/usr.bin/mail/lex.c index c6fee20..cc4972d 100644 --- a/usr.bin/mail/lex.c +++ b/usr.bin/mail/lex.c @@ -64,12 +64,13 @@ setfile(name) char isedit = *name != '%'; char *who = name[1] ? name + 1 : myname; static int shudclob; - extern char tempMesg[]; + extern char *tempMesg; extern int errno; if ((name = expand(name)) == NOSTR) return -1; +fprintf(stderr,">%s\n",name); if ((ibuf = Fopen(name, "r")) == NULL) { if (!isedit && errno == ENOENT) goto nomail; |