diff options
author | Brendan Cully <brendan@kublai.com> | 2005-10-21 04:35:37 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2005-10-21 04:35:37 +0000 |
commit | 57b2680edee942497d9752e8be5741b181493a50 (patch) | |
tree | c6761a63c9ea591556fec61486d3d5fdc096ece7 /attach.c | |
parent | d6fb4ea49daf00a0747cc7de75cc6289e539027e (diff) |
Full large file support. Keep a close watch on your mailboxes everyone!
Diffstat (limited to 'attach.c')
-rw-r--r-- | attach.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -168,7 +168,7 @@ int mutt_compose_attachment (BODY *a) /* Remove headers by copying out data to another file, then * copying the file back */ - fseek (fp, b->offset, 0); + fseeko (fp, b->offset, 0); mutt_mktemp (tempfile); if ((tfp = safe_fopen (tempfile, "w")) == NULL) { @@ -771,7 +771,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr) hn->msgno = hdr->msgno; /* required for MH/maildir */ hn->read = 1; - fseek (fp, m->offset, 0); + fseeko (fp, m->offset, 0); if (fgets (buf, sizeof (buf), fp) == NULL) return -1; if (mx_open_mailbox(path, M_APPEND | M_QUIET, &ctx) == NULL) @@ -806,7 +806,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr) mutt_perror ("fopen"); return (-1); } - fseek ((s.fpin = fp), m->offset, 0); + fseeko ((s.fpin = fp), m->offset, 0); mutt_decode_attachment (m, &s); if (fclose (s.fpout) != 0) |