X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flizard-safe.c;h=e8e8f6fa822c8900fb6349f8a9040209ffd7e93e;hb=39d5e9acc6d93c07cbb408fe27144c8a485499ac;hp=0473e34ae7270215267adb6b59e342eb43140485;hpb=3355e84f7cd4485564b92145efff82ac73c61873;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; }