Skip to content

Commit f0c418b

Browse files
committed
Java correct buffer length
1 parent ac3751f commit f0c418b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/isc/zlib/Java.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public abstract class Java {
77

88
public static byte[] compress(String inputString) {
9-
byte[] output = new byte[100];
9+
byte[] output = new byte[inputString.length()*3];
1010
try {
1111
// Encode a String into bytes
1212
byte[] input = inputString.getBytes("UTF-8");

0 commit comments

Comments
 (0)