From: Paul Date: Fri, 12 Sep 2014 06:12:44 +0000 (+0100) Subject: fix bug 3265, 'procmime.c: unbalanced flockfile() / funlockfile()' X-Git-Tag: 3.11.0~21 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=edb27a1a701506fab0d12bce823f59bf302e4f00;hp=b29a924ece7da846e2871bea8bbddde98edcb5cf fix bug 3265, 'procmime.c: unbalanced flockfile() / funlockfile()' Patch by Timo Teräs --- 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;