aboutsummaryrefslogtreecommitdiff
path: root/src/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tar.c')
-rw-r--r--src/tar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tar.c b/src/tar.c
index 6e90aa5..cbaf875 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -22,7 +22,8 @@ static int copy_data(struct archive* ar, struct archive* aw)
if (r == ARCHIVE_EOF) return (ARCHIVE_OK);
if (r < ARCHIVE_OK) return (r);
- r = archive_write_data_block(aw, buff, size, offset);
+ // why does read return an int but write not?
+ r = (int)archive_write_data_block(aw, buff, size, offset);
if (r < ARCHIVE_OK)
{