mirror of
https://github.com/topjohnwu/jtar.git
synced 2025-02-17 01:29:04 +00:00
Merge pull request #10 from mikeb01/read-fix
Fix bug with reads of values > 127
This commit is contained in:
commit
51fe434aee
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user