]> mj.ucw.cz Git - libucw.git/blobdiff - lib/lizard-safe.c
Make sure that in_to_x and x_to_out are NULL if they are not available.
[libucw.git] / lib / lizard-safe.c
index 0473e34ae7270215267adb6b59e342eb43140485..e8e8f6fa822c8900fb6349f8a9040209ffd7e93e 100644 (file)
@@ -69,7 +69,7 @@ sigsegv_handler(int signal UNUSED)
 }
 
 byte *
-lizard_decompress_safe(byte *in, struct lizard_buffer *buf, uns expected_length)
+lizard_decompress_safe(const byte *in, struct lizard_buffer *buf, uns expected_length)
   /* Decompresses in into buf, sets *ptr to the data, and returns the
    * uncompressed length.  If an error has occured, -1 is returned and errno is
    * set.  The buffer buf is automatically reallocated.  SIGSEGV is caught in
@@ -93,7 +93,7 @@ lizard_decompress_safe(byte *in, struct lizard_buffer *buf, uns expected_length)
   }
   else
   {
-    log(L_ERROR, "SIGSEGV caught in lizard_decompress()");
+    msg(L_ERROR, "SIGSEGV caught in lizard_decompress()");
     ptr = NULL;
     errno = EFAULT;
   }