thanks BorisCarvajal for spotting bug in issue 233

This commit is contained in:
Adam D. Ruppe 2020-01-05 09:40:07 -05:00
parent a0236624f2
commit 9ad7b08ce0
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ bool processTar(
if(*bytesRemainingOnCurrentFile) {
bool isNew = *bytesRemainingOnCurrentFile == header.size();
if(*bytesRemainingOnCurrentFile < 512) {
if(*bytesRemainingOnCurrentFile <= 512) {
handleData(header, isNew, true, dataBuffer[0 .. cast(size_t) *bytesRemainingOnCurrentFile]);
*bytesRemainingOnCurrentFile = 0;
} else {