fix bug 3265, 'procmime.c: unbalanced flockfile() / funlockfile()'
authorPaul <paul@claws-mail.org>
Fri, 12 Sep 2014 06:12:44 +0000 (07:12 +0100)
committerPaul <paul@claws-mail.org>
Fri, 12 Sep 2014 06:12:44 +0000 (07:12 +0100)
Patch by Timo Teräs

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

diff --git a/AUTHORS b/AUTHORS
index 52adcdc..e671968 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -308,3 +308,4 @@ contributors (in addition to the above; based on Changelog)
        Igor Gnatenko
        Kevin Day
        Alessandro Di Federico
+       Timo Teräs
index 7e6af84..6eefc5a 100644 (file)
@@ -263,6 +263,7 @@ static char *CONTRIBS_LIST[] = {
 "Takahashi",
 "Tanaka",
 "Shimamoto \"Neko\" Tatsuya",
+"Timo Teräs",
 "Pascal Terjan",
 "Thorsten Thielen",
 "Edgar Toernig",
index 2275c89..592f2d6 100644 (file)
@@ -372,6 +372,9 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
                procmime_fclose(infp);
                return FALSE;
        }
+#ifdef HAVE_FGETS_UNLOCKED
+       flockfile(outfp);
+#endif
        tmp_file = TRUE;
        readend = mimeinfo->offset + mimeinfo->length;