commit eee39d758fa409d1c5ebce06228184023f0b86b5
parent 463abe4effd5dedc7e41332a6f9cbe185f0bb738
Author: Paul <paul@claws-mail.org>
Date: Wed, 15 Jul 2015 19:23:05 +0100
fix bug 2435, ' Infinite loop+crash when refreshing folders from dovecot mbox based mailbox'
Patch by Oliver Schneider
Diffstat:
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/AUTHORS b/AUTHORS
@@ -314,3 +314,4 @@ contributors (in addition to the above; based on Changelog)
Johan Vromans
Charles Lehner
Robert David
+ Oliver Schneider
diff --git a/src/gtk/authors.h b/src/gtk/authors.h
@@ -249,6 +249,7 @@ static char *CONTRIBS_LIST[] = {
"Mohammed Sameer",
"Tobias Sandhaas",
"Peter Sarvas",
+"Oliver Schneider",
"Torsten Schoenfeld",
"Simon 'corecode' Schubert",
"Kim Schulz",
diff --git a/src/imap.c b/src/imap.c
@@ -5644,7 +5644,9 @@ static GSList * imap_list_from_lep(IMAPFolder * folder,
}
if (!all && dup_name[strlen(dup_name)-1] == '/') {
- dup_name[strlen(dup_name)-1] = '\0';
+ g_free(base);
+ free(dup_name);
+ continue;
}
loc_name = imap_modified_utf7_to_utf8(base, FALSE);