Control: tag -1 - moreinfo + patch

Hi,

Jö and I wrote the attached patch after playing a bit with gdb. The
tmpoffset variable is used to temporarily store a off_t value:

  tmpoffset = b->offset;
  ...
  b->offset = tmpoffset;

This doesn't work if sizeof(off_t) != sizeof(long) as on i386 with
64-bit off_t.

Ansgar
only in patch2:
unchanged:
--- mutt-1.5.21.orig/handler.c
+++ mutt-1.5.21/handler.c
@@ -1520,7 +1520,7 @@
   FILE *fp = NULL;
   char tempfile[_POSIX_PATH_MAX];
   handler_t handler = NULL;
-  long tmpoffset = 0;
+  off_t tmpoffset = 0;
   size_t tmplength = 0;
   char type[STRING];
   int rc = 0;

Reply via email to