=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/collect.c,v retrieving revision 1.27 retrieving revision 1.28 diff -c -r1.27 -r1.28 *** src/usr.bin/mail/collect.c 2004/01/03 20:06:59 1.27 --- src/usr.bin/mail/collect.c 2007/09/10 14:29:53 1.28 *************** *** 1,4 **** ! /* $OpenBSD: collect.c,v 1.27 2004/01/03 20:06:59 millert Exp $ */ /* $NetBSD: collect.c,v 1.9 1997/07/09 05:25:45 mikel Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: collect.c,v 1.28 2007/09/10 14:29:53 tobias Exp $ */ /* $NetBSD: collect.c,v 1.9 1997/07/09 05:25:45 mikel Exp $ */ /* *************** *** 34,40 **** #if 0 static const char sccsid[] = "@(#)collect.c 8.2 (Berkeley) 4/19/94"; #else ! static const char rcsid[] = "$OpenBSD: collect.c,v 1.27 2004/01/03 20:06:59 millert Exp $"; #endif #endif /* not lint */ --- 34,40 ---- #if 0 static const char sccsid[] = "@(#)collect.c 8.2 (Berkeley) 4/19/94"; #else ! static const char rcsid[] = "$OpenBSD: collect.c,v 1.28 2007/09/10 14:29:53 tobias Exp $"; #endif #endif /* not lint */ *************** *** 447,453 **** (void)ignoresig(SIGINT, &oact, &oset); nf = run_editor(fp, (off_t)-1, c, 0); if (nf != NULL) { ! fseek(nf, 0L, 2); collf = nf; (void)Fclose(fp); } --- 447,453 ---- (void)ignoresig(SIGINT, &oact, &oset); nf = run_editor(fp, (off_t)-1, c, 0); if (nf != NULL) { ! fseek(nf, 0L, SEEK_END); collf = nf; (void)Fclose(fp); } *************** *** 497,503 **** /* * Take new files. */ ! (void)fseek(nf, 0L, 2); collf = nf; (void)Fclose(fp); out: --- 497,503 ---- /* * Take new files. */ ! (void)fseek(nf, 0L, SEEK_END); collf = nf; (void)Fclose(fp); out: