Changeset 5443:8b783c916893 for buffy.c

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

    r5398 r5443  
    430430 
    431431    strfcpy (path, tmp->path, sizeof (path)); 
    432     mutt_pretty_mailbox (path); 
     432    mutt_pretty_mailbox (path, sizeof (path)); 
    433433     
    434434    if (!first && pos + strlen (path) >= COLS - 7) 
     
    503503    } 
    504504    strfcpy (s, tmp->path, slen); 
    505     mutt_pretty_mailbox (s); 
     505    mutt_pretty_mailbox (s, slen); 
    506506    break; 
    507507 
     
    529529    } 
    530530    strfcpy (s, tmp->path, slen); 
    531     mutt_pretty_mailbox (s); 
     531    mutt_pretty_mailbox (s, slen); 
    532532    break; 
    533533  }