summaryrefslogtreecommitdiff
path: root/lib/Handle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r--lib/Handle.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 1701cd9..65935a4 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -901,15 +901,13 @@ int Handle::ucl_compress(Handle * in, Handle * out, int len_in) throw (GeneralEx
return len_out;
}
-int Handle::ucl_decompress(Handle * in, Handle * out, int len_in) throw (GeneralException) {
+int Handle::ucl_decompress(Handle * in, Handle * out, unsigned int len_out, int len_in) throw (GeneralException) {
if (ucl_init() != UCL_E_OK)
throw GeneralException("ucl_init failed");
unsigned char * b_in, * b_out;
- unsigned int len_out;
if (len_in < 0) len_in = in->GetSize() - in->tell();
- len_out = len_in + len_in / 8 + 256;
b_in = (unsigned char *) malloc(len_in);
b_out = (unsigned char *) malloc(len_out);