summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/lex.c
diff options
context:
space:
mode:
authorthepish <thepish@FreeBSD.org>1998-10-10 09:58:20 +0000
committerthepish <thepish@FreeBSD.org>1998-10-10 09:58:20 +0000
commitbaece423c7edaa616079760a7a4c8602a608e68d (patch)
tree7a7bb8a08e738d265239042fd71c7affda0210a8 /usr.bin/mail/lex.c
parentbcaad08a6991f0785956d31ba4016d0a7cc48687 (diff)
downloadFreeBSD-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.c3
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;
OpenPOWER on IntegriCloud