Rocco Rutte:
[apps/madmutt.git] / pop / pop.c
index 804fec2..34d1cc7 100644 (file)
--- a/pop/pop.c
+++ b/pop/pop.c
@@ -417,7 +417,7 @@ int pop_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno)
     fgets (buf, sizeof (buf), msg->fp);
   }
 
-  h->content->length = ftell (msg->fp) - h->content->offset;
+  h->content->length = ftello (msg->fp) - h->content->offset;
 
   /* This needs to be done in case this is a multipart message */
   if (!WithCrypto)