Changeset 5445:f41ba27be46f

Show
Ignore:
Timestamp:
2008-07-02 09:08:07 (8 weeks ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Fix casts for progress update to prevent -ftrapv aborts to trigger. Closes #3018.

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5443 r5445  
     12008-07-02 08:56 -0700  Brendan Cully  <brendan@kublai.com>  (c51c16db46cc) 
     2 
     3        * crypt-gpgme.c: Only make LC_MESSAGES conditional on NLS in GPGME 
     4        locale support. 
     5 
     62008-07-02 11:19 +0200  Rocco Rutte  <pdmef@gmx.net>  (8b783c916893) 
     7 
     8        * ChangeLog, browser.c, buffy.c, commands.c, compose.c, curs_main.c, 
     9        enter.c, headers.c, hook.c, imap/imap.c, init.c, mbox.c, muttlib.c, 
     10        postpone.c, protos.h, recvattach.c, send.c, status.c: Use realpath() 
     11        in mutt_pretty_mailbox() for paths that may need it. This requires 
     12        to add the buffer size as parameter since the result may be longer 
     13        than the original but still fit in the buffer. Closes #2948. 
     14 
    1152008-07-02 10:06 +0200  Rocco Rutte  <pdmef@gmx.net>  (cc2334fdf126) 
    216 
  • curs_lib.c

    r5441 r5445  
    378378  /* if timestamp is 0 no time-based suppression is done */ 
    379379  if (TimeInc) 
    380     progress->timestamp = (unsigned int) (tv.tv_sec * 1000) 
     380    progress->timestamp = ((unsigned int) tv.tv_sec * 1000) 
    381381        + (unsigned int) (tv.tv_usec / 1000); 
    382382  mutt_progress_update (progress, 0, 0); 
     
    402402  /* skip refresh if not enough time has passed */ 
    403403  if (update && progress->timestamp && !gettimeofday (&tv, NULL)) { 
    404     now = (unsigned int) (tv.tv_sec * 1000) 
     404    now = ((unsigned int) tv.tv_sec * 1000) 
    405405          + (unsigned int) (tv.tv_usec / 1000); 
    406406    if (now && now - progress->timestamp < TimeInc)