fixed handling case where stuff gets sent to an edit file while you're
authorKurt A. Shoens <kurt@ucbvax.Berkeley.EDU>
Wed, 29 Apr 1981 02:38:54 +0000 (18:38 -0800)
committerKurt A. Shoens <kurt@ucbvax.Berkeley.EDU>
Wed, 29 Apr 1981 02:38:54 +0000 (18:38 -0800)
reading it -- missing fseek

SCCS-vsn: usr.bin/mail/fio.c 1.12

usr/src/usr.bin/mail/fio.c

index 3a92c27..d5e3bb2 100644 (file)
@@ -10,7 +10,7 @@
  * File I/O.
  */
 
  * 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
 
 /*
  * Set up the input pointers while copying the mail file into
@@ -328,6 +328,7 @@ edstop()
                        relsesigs();
                        reset(0);
                }
                        relsesigs();
                        reset(0);
                }
+               fseek(ibuf, mailsize, 0);
                while ((c = getc(ibuf)) != EOF)
                        putc(c, obuf);
                fclose(ibuf);
                while ((c = getc(ibuf)) != EOF)
                        putc(c, obuf);
                fclose(ibuf);