diff options
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r-- | usr.bin/mail/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c index 76d679d..e8d54de 100644 --- a/usr.bin/mail/edit.c +++ b/usr.bin/mail/edit.c @@ -111,8 +111,8 @@ edit1(msgvec, type) sigint = signal(SIGINT, SIG_IGN); fp = run_editor(setinput(mp), mp->m_size, type, readonly); if (fp != NULL) { - (void)fseek(otf, 0L, 2); - size = ftell(otf); + (void)fseeko(otf, (off_t)0, SEEK_END); + size = ftello(otf); mp->m_block = blockof(size); mp->m_offset = boffsetof(size); mp->m_size = fsize(fp); |