Skip to content

Commit

Permalink
Temporarily fix buffer error.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4rvis committed Apr 26, 2016
1 parent db65f15 commit 2dfdd17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ASIPInMessage(SharkEngine se, int asipMessageType, Interest anyInterest,
}

public void parse() throws IOException, SharkSecurityException {
char[] buffer = new char[this.is.available()];
char[] buffer = new char[4048];
BufferedReader in = new BufferedReader(new InputStreamReader(this.is, StandardCharsets.UTF_8));
int charsRead = in.read(buffer);
this.parsedString += new String(buffer).substring(0, charsRead);
Expand Down

0 comments on commit 2dfdd17

Please sign in to comment.