From edb27a1a701506fab0d12bce823f59bf302e4f00 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 12 Sep 2014 07:12:44 +0100 Subject: [PATCH 1/1] fix bug 3265, 'procmime.c: unbalanced flockfile() / funlockfile()' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Timo Teräs --- AUTHORS | 1 + src/gtk/authors.h | 1 + src/procmime.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/AUTHORS b/AUTHORS index 52adcdcb6..e67196862 100644 --- 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 diff --git a/src/gtk/authors.h b/src/gtk/authors.h index 7e6af84c1..6eefc5af9 100644 --- a/src/gtk/authors.h +++ b/src/gtk/authors.h @@ -263,6 +263,7 @@ static char *CONTRIBS_LIST[] = { "Takahashi", "Tanaka", "Shimamoto \"Neko\" Tatsuya", +"Timo Teräs", "Pascal Terjan", "Thorsten Thielen", "Edgar Toernig", diff --git a/src/procmime.c b/src/procmime.c index 2275c8991..592f2d6ae 100644 --- a/src/procmime.c +++ b/src/procmime.c @@ -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; -- 2.25.1