summaryrefslogtreecommitdiff
path: root/editors/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/patch.c')
-rw-r--r--editors/patch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c
index fff0690..33ff8b5 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -200,8 +200,7 @@ int copy_tempfile(int fdin, char *name, char **tempname)
int fd;
*tempname = xasprintf("%sXXXXXX", name);
- fd = mkstemp(*tempname);
- if(-1 == fd) bb_perror_msg_and_die("no temp file");
+ fd = xmkstemp(*tempname);
// Set permissions of output file
fstat(fdin, &statbuf);