summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4edaef0b..1eb9dae8 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -982,7 +982,8 @@ short_read (size_t status)
}
record_end = record_start + (record_size - left) / BLOCKSIZE;
- records_read++;
+ if (left == 0)
+ records_read++;
}
/* Flush the current buffer to/from the archive. */