From 0c3a2f40b5fb42daf98c1c97410a02c1cbe6801b Mon Sep 17 00:00:00 2001 From: "Kurt A. Shoens" Date: Tue, 28 Apr 1981 18:38:54 -0800 Subject: [PATCH] fixed handling case where stuff gets sent to an edit file while you're reading it -- missing fseek SCCS-vsn: usr.bin/mail/fio.c 1.12 --- usr/src/usr.bin/mail/fio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/usr.bin/mail/fio.c b/usr/src/usr.bin/mail/fio.c index 3a92c27b22..d5e3bb2711 100644 --- a/usr/src/usr.bin/mail/fio.c +++ b/usr/src/usr.bin/mail/fio.c @@ -10,7 +10,7 @@ * File I/O. */ -static char *SccsId = "@(#)fio.c 1.11 %G%"; +static char *SccsId = "@(#)fio.c 1.12 %G%"; /* * Set up the input pointers while copying the mail file into @@ -328,6 +328,7 @@ edstop() relsesigs(); reset(0); } + fseek(ibuf, mailsize, 0); while ((c = getc(ibuf)) != EOF) putc(c, obuf); fclose(ibuf); -- 2.20.1