summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-21 12:32:25 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-21 12:32:25 +0300
commit43f32cdeef07eb33aee2c9b87fb51849faf093a3 (patch)
tree9e9177c4b92f810e0769555165651b1145220d2e
parented2733c65b2c39c5e7fe18b6e0390b20fdcae3d4 (diff)
downloadabuild-43f32cdeef07eb33aee2c9b87fb51849faf093a3.tar.bz2
abuild-43f32cdeef07eb33aee2c9b87fb51849faf093a3.tar.xz
abuild-tar: fix splice arguments
-rw-r--r--abuild-tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild-tar.c b/abuild-tar.c
index 858b6ad..c652e04 100644
--- a/abuild-tar.c
+++ b/abuild-tar.c
@@ -153,7 +153,7 @@ static ssize_t full_splice(int from_fd, int to_fd, size_t count)
total = 0;
do {
- n = splice(from_fd, NULL, to_fd, count, 0);
+ n = splice(from_fd, NULL, to_fd, NULL, count, 0);
if (n < 0 && errno == EINTR)
continue;
if (n <= 0)