소스 검색

Fix savannah bug #63567

* src/buffer.c (short_read): Increase records_read only if a full
record has been read.
Sergey Poznyakoff 2 년 전
부모
커밋
e89c7a45eb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/buffer.c

+ 2 - 1
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.  */