Show
Ignore:
Timestamp:
2008-07-02 02:19:14 (5 months ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Use realpath() in mutt_pretty_mailbox() for paths that may need it.
This requires to add the buffer size as parameter since the result may
be longer than the original but still fit in the buffer. Closes #2948.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • headers.c

    r4616 r5443  
    144144      { 
    145145        strfcpy (fcc, p, fcclen); 
    146         mutt_pretty_mailbox (fcc); 
     146        mutt_pretty_mailbox (fcc, fcclen); 
    147147      } 
    148148      keep = 0; 
     
    174174        else 
    175175        { 
    176           mutt_pretty_mailbox (path); 
     176          mutt_pretty_mailbox (path, sizeof (path)); 
    177177          mutt_error (_("%s: unable to attach file"), path); 
    178178        }