X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flizard-safe.c;h=e8e8f6fa822c8900fb6349f8a9040209ffd7e93e;hb=534019614dd611e7df29a0c8c59f2a869a2c0c39;hp=0473e34ae7270215267adb6b59e342eb43140485;hpb=18fcca1138ad1b480854cb1e64fa10a84660dcba;p=libucw.git diff --git a/lib/lizard-safe.c b/lib/lizard-safe.c index 0473e34a..e8e8f6fa 100644 --- a/lib/lizard-safe.c +++ b/lib/lizard-safe.c @@ -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; }