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
  • browser.c

    r5209 r5443  
    463463     
    464464    strfcpy (buffer, NONULL(tmp->path), sizeof (buffer)); 
    465     mutt_pretty_mailbox (buffer); 
     465    mutt_pretty_mailbox (buffer, sizeof (buffer)); 
    466466 
    467467    add_folder (menu, state, buffer, &s, tmp->new); 
     
    509509  { 
    510510    strfcpy (path, LastDir, sizeof (path)); 
    511     mutt_pretty_mailbox (path); 
     511    mutt_pretty_mailbox (path, sizeof (path)); 
    512512#ifdef USE_IMAP 
    513513  if (state->imap_browse && option (OPTIMAPLSUB))