Changeset 5443:8b783c916893 for init.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
  • init.c

    r5416 r5443  
    18571857          _tmp[0] = '\0'; 
    18581858          strfcpy (_tmp, NONULL(*((char **) MuttVars[idx].data)), sizeof (_tmp)); 
    1859           mutt_pretty_mailbox (_tmp); 
     1859          mutt_pretty_mailbox (_tmp, sizeof (_tmp)); 
    18601860          val = _tmp; 
    18611861        } 
     
    26192619    strfcpy (tmp, NONULL (*((char **) MuttVars[idx].data)), sizeof (tmp)); 
    26202620    if (DTYPE (MuttVars[idx].type) == DT_PATH) 
    2621       mutt_pretty_mailbox (tmp); 
     2621      mutt_pretty_mailbox (tmp, sizeof (tmp)); 
    26222622  } 
    26232623  else if (DTYPE (MuttVars[idx].type) == DT_ADDR)