diff --git a/archive.d b/archive.d index b7c02c2..8d14c26 100644 --- a/archive.d +++ b/archive.d @@ -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 {