Skip to content

Commit

Permalink
#316 ClamAV program tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoraka committed Aug 26, 2018
1 parent c39adb9 commit 6e43939
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public String scanBytesNew(byte[] bytes) throws IOException {
BufferedReader in = socket.getBufferedReader();

// send bytes
outStream.write("nINSTREAM\n".getBytes("UTF-8"));
outStream.write("nINSTREAM\n".getBytes(DEFAULT_CHARSET));
outStream.write(intBytes(bytes.length, CHUNK_LENGTH_BYTE_SIZE));
outStream.write(bytes);

Expand Down Expand Up @@ -163,7 +163,7 @@ public String scanBytesWithInfo(byte[] bytes) throws ScanErrorException {
BufferedReader in = new BufferedReader(inReader)
) {
// send bytes
outStream.write("nINSTREAM\n".getBytes("UTF-8"));
outStream.write("nINSTREAM\n".getBytes(DEFAULT_CHARSET));
outStream.write(intBytes(bytes.length, CHUNK_LENGTH_BYTE_SIZE));
outStream.write(bytes);

Expand Down

0 comments on commit 6e43939

Please sign in to comment.