diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-05-23 14:19:16 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-05-23 14:19:16 +0000 |
commit | 727a3866cff90ad1fcdd11a5da1be9dfd7a5ce57 (patch) | |
tree | dc294696b94f1620ff87cfa6a973a6aa98b325e7 | |
parent | 503886f083752001019d56353bcc05454c2fb64f (diff) |
patch-bac.chdir-20010523.1
-rw-r--r-- | browser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -907,9 +907,9 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num if (!state.imap_browse) #endif { - /* add '/' at the end of the directory name */ + /* add '/' at the end of the directory name if not already there */ int len=mutt_strlen(LastDir); - if (sizeof (buf) > len) + if (LastDir[len-1] != '/' && sizeof (buf) > len) buf[len]='/'; } |