Skip to content

Commit

Permalink
Fix LinePipedInputStream to read a single command
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed Feb 23, 2018
1 parent 1ce7047 commit d9c16db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public synchronized int read(byte[] b, int off, int len) throws IOException {
if (available > (len - 1)) {
available = len - 1;
}
enter = findEnter(buffer, out, (out+available > len-1) ? len-1 : out+available);
enter = findEnter(buffer, out, out+available);
if(enter > -1) {
if(enter+1 <= available)
available = enter+1;
Expand Down

0 comments on commit d9c16db

Please sign in to comment.