X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=913dbb7522fbf280c5f19936d3249acfa206c675;hp=c695e346e130374a24843da38028112dbf66e9a7;hb=c8ceef3ed6424dcb5a6ec835e7d8d9cc00595372;hpb=aa55c2d3e1bd7d40f866932b3833f338cf6c9d9b diff --git a/attach.c b/attach.c index c695e34..913dbb7 100644 --- a/attach.c +++ b/attach.c @@ -156,7 +156,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) { mutt_perror (_("Failure to open file to strip headers.")); @@ -724,7 +724,7 @@ int mutt_save_attachment (FILE * fp, BODY * m, char *path, int flags, 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) @@ -759,7 +759,7 @@ int mutt_save_attachment (FILE * fp, BODY * m, char *path, int flags, 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) {