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 680354871edfcfd4fb4b9cb9c312fe8e818f8e0e..cf309b836a6236f1cb4810b085ff6929bc771761 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 8a776336284cfeef66664c48dfc5e51d98d63c42..f719e4bba3bafe2d89c5b9947b5677275e5ea5ac 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 45acb6afe7c3369fcb09c12c551591acd70317da..9f533545d7a3da15593cc8247c201f510c0b64c9 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);