summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-10-21 04:35:37 +0000
committerBrendan Cully <brendan@kublai.com>2005-10-21 04:35:37 +0000
commit57b2680edee942497d9752e8be5741b181493a50 (patch)
treec6761a63c9ea591556fec61486d3d5fdc096ece7 /attach.c
parentd6fb4ea49daf00a0747cc7de75cc6289e539027e (diff)
Full large file support. Keep a close watch on your mailboxes everyone!
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/attach.c b/attach.c
index 8a44859b..74377b0d 100644
--- a/attach.c
+++ b/attach.c
@@ -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)