diff --git a/abuild-tar.c b/abuild-tar.c
index 858b6adc3efef5aebc2fe3318037ce7be2ab2112..c652e04e1e6c660afa85f9382042fd94f43e6cb0 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)