diff --git a/unpack-file.c b/unpack-file.c
index ccddf1d4b0cf7fd3a699d8b33cf5bc4c5c4435b7..d24acc2a67c4b7ba112bd192680b137f30a06003 100644 (file)
--- a/unpack-file.c
+++ b/unpack-file.c
fd = mkstemp(path);
if (fd < 0)
die("unable to create temp-file");
fd = mkstemp(path);
if (fd < 0)
die("unable to create temp-file");
- if (write(fd, buf, size) != size)
+ if (write_in_full(fd, buf, size) != size)
die("unable to write temp-file");
close(fd);
return path;
die("unable to write temp-file");
close(fd);
return path;