summaryrefslogtreecommitdiff
path: root/test-delta.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-delta.c')
-rw-r--r--test-delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-delta.c b/test-delta.c
index 795aa08377..16595ef0a9 100644
--- a/test-delta.c
+++ b/test-delta.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
}
fd = open (argv[4], O_WRONLY|O_CREAT|O_TRUNC, 0666);
- if (fd < 0 || write(fd, out_buf, out_size) != out_size) {
+ if (fd < 0 || write_in_full(fd, out_buf, out_size) != out_size) {
perror(argv[4]);
return 1;
}