fix bug 2435, ' Infinite loop+crash when refreshing folders from dovecot mbox based...
authorPaul <paul@claws-mail.org>
Wed, 15 Jul 2015 18:23:05 +0000 (19:23 +0100)
committerPaul <paul@claws-mail.org>
Wed, 15 Jul 2015 18:23:05 +0000 (19:23 +0100)
Patch by Oliver Schneider

AUTHORS
src/gtk/authors.h
src/imap.c

diff --git a/AUTHORS b/AUTHORS
index 6803548..cf309b8 100644 (file)
--- 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
index 8a77633..f719e4b 100644 (file)
@@ -249,6 +249,7 @@ static char *CONTRIBS_LIST[] = {
 "Mohammed Sameer",
 "Tobias Sandhaas",
 "Peter Sarvas",
+"Oliver Schneider",
 "Torsten Schoenfeld",
 "Simon 'corecode' Schubert",
 "Kim Schulz",
index 45acb6a..9f53354 100644 (file)
@@ -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);