summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-03-15 13:46:52 +0100
committerRocco Rutte <pdmef@gmx.net>2009-03-15 13:46:52 +0100
commit8cfd92192fbe9b2c17fdc2b262592a486025d0ff (patch)
tree6fa88dcb48254bd3d5a6492eb7889671482592db /handler.c
parent06d425398e3ef6fd3b152d95f6def1b4b14ff43e (diff)
Use safe_fclose() instead of fclose(), add fclose() to check_sec.sh
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handler.c b/handler.c
index 508aec47..c3572bd3 100644
--- a/handler.c
+++ b/handler.c
@@ -1643,7 +1643,7 @@ int mutt_body_handler (BODY *b, STATE *s)
{
b->length = ftello (s->fpout);
b->offset = 0;
- fclose (s->fpout);
+ safe_fclose (&s->fpout);
/* restore final destination and substitute the tempfile for input */
s->fpout = fp;
@@ -1674,7 +1674,7 @@ int mutt_body_handler (BODY *b, STATE *s)
b->offset = tmpoffset;
/* restore the original source stream */
- fclose (s->fpin);
+ safe_fclose (&s->fpin);
s->fpin = fp;
}
}