summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-05-23 14:19:16 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-05-23 14:19:16 +0000
commit727a3866cff90ad1fcdd11a5da1be9dfd7a5ce57 (patch)
treedc294696b94f1620ff87cfa6a973a6aa98b325e7
parent503886f083752001019d56353bcc05454c2fb64f (diff)
patch-bac.chdir-20010523.1
-rw-r--r--browser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/browser.c b/browser.c
index cb2ee24e..50a8b25c 100644
--- a/browser.c
+++ b/browser.c
@@ -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]='/';
}