summaryrefslogtreecommitdiff
path: root/mailutils/mime.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailutils/mime.c')
-rw-r--r--mailutils/mime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailutils/mime.c b/mailutils/mime.c
index dd81139..17d0f9d 100644
--- a/mailutils/mime.c
+++ b/mailutils/mime.c
@@ -293,7 +293,7 @@ static int parse(const char *boundary, char **argv)
}
// parent dumps to fd[1]
close(fd[0]);
- fp = fdopen(fd[1], "w");
+ fp = xfdopen_for_write(fd[1]);
signal(SIGPIPE, SIG_IGN); // ignore EPIPE
// or create a file for dump
} else {