<<< Date Index >>>     <<< Thread Index >>>

[PATCH] Incorrect pager percentage



The percentage through the message indicator (%P) on the pager status line
is incorrect on systems that don't support 64-bit offsets.  The attached
patch corrects this on mutt 1.5.16.

>>> Dan
-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
--- pager.c.orig        Sun Apr 15 16:56:26 2007
+++ pager.c     Wed Jun 13 09:39:10 2007
@@ -1742,7 +1742,7 @@
       hfi.pager_progress = pager_progress_str;
 
       if (last_pos < sb.st_size - 1)
-       snprintf(pager_progress_str, sizeof(pager_progress_str), "%lld%%", (100 
* last_offset / sb.st_size));
+       snprintf(pager_progress_str, sizeof(pager_progress_str), OFF_T_FMT 
"%%", (100 * last_offset / sb.st_size));
       else
        strfcpy(pager_progress_str, (topline == 0) ? "all" : "end", 
sizeof(pager_progress_str));