Skip to content

Commit

Permalink
Fix the obvious mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jimma committed Sep 29, 2017
1 parent 287ed32 commit 92336fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public synchronized byte[] getEventPayLoad()
}
//delimiter is \r\n
if (count >= 2 && buf[count-2] == '\r' && buf[count-1] == '\n') {
Arrays.copyOf(buf, count-2);
return Arrays.copyOf(buf, count-2);
}
return Arrays.copyOf(buf, count);
}
Expand Down

0 comments on commit 92336fe

Please sign in to comment.