#endif
#include "mutt.h"
+#include "handler.h"
#include "pgp.h"
#include "pgppacket.h"
#include "mime.h"
static void pgp_dearmor (FILE * in, FILE * out)
{
char line[HUGE_STRING];
- long start;
- long end;
+ LOFF_T start;
+ LOFF_T end;
char *r;
STATE state;
}
/* actual data starts here */
- start = ftell (in);
+ start = ftello (in);
/* find the checksum */
return;
}
- if ((end = ftell (in) - mutt_strlen (line)) < start) {
+ if ((end = ftello (in) - str_len (line)) < start) {
debug_print (1, ("end < start???\n"));
return;
}
- if (fseek (in, start, SEEK_SET) == -1) {
+ if (fseeko (in, start, SEEK_SET) == -1) {
debug_print (1, ("Can't seekto start.\n"));
return;
}