From 727a3866cff90ad1fcdd11a5da1be9dfd7a5ce57 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 23 May 2001 14:19:16 +0000 Subject: [PATCH] patch-bac.chdir-20010523.1 --- browser.c | 4 ++-- 1 file 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]='/'; } -- 2.50.1