summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-02-14 15:53:24 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-02-14 15:53:24 +0000
commitfab825405f06b4f349513616584e243facdde5e8 (patch)
tree88a3d5ff6d5e3abb6fa5d12a34d1a6c7ea9b67d6 /attach.c
parent55ec58aafbaadd60dad947f127a53b1c967f7930 (diff)
Fix a couple of random perror() calls and related problems.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/attach.c b/attach.c
index fff84944..8b2d668f 100644
--- a/attach.c
+++ b/attach.c
@@ -792,7 +792,7 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path,
if (s.fpout == NULL)
{
- perror ("fopen");
+ mutt_perror ("fopen");
return (-1);
}
@@ -804,14 +804,14 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path,
if (stat (m->filename, &st) == -1)
{
- perror ("stat");
+ mutt_perror ("stat");
fclose (s.fpout);
return (-1);
}
if ((s.fpin = fopen (m->filename, "r")) == NULL)
{
- perror ("fopen");
+ mutt_perror ("fopen");
return (-1);
}