diff --git a/SharpCompress/Utility.cs b/SharpCompress/Utility.cs index d6599187..0417c654 100644 --- a/SharpCompress/Utility.cs +++ b/SharpCompress/Utility.cs @@ -146,7 +146,7 @@ namespace SharpCompress readCount = (int)advanceAmount; } read = source.Read(buffer, 0, readCount); - if (read < 0) + if (read == 0) { break; }