Merge pull request #10 from mikeb01/read-fix

Fix bug with reads of values > 127
This commit is contained in:
Kamran 2013-07-03 14:01:12 -07:00
commit 51fe434aee

View File

@ -73,7 +73,7 @@ public class TarInputStream extends FilterInputStream {
int res = this.read(buf, 0, 1);
if (res != -1) {
return buf[0];
return 0xFF & buf[0];
}
return res;