Fix an unsigned cast madness.
[ctfdump/.git] / ctfdump.c
index 4541170e47b993e99d934652af93fc63f771a838..c722ac7a02252ed4a27e0c4a83d46fcfc57e93ed 100644 (file)
--- a/ctfdump.c
+++ b/ctfdump.c
@@ -585,7 +585,7 @@ decompress(const char *buf, size_t size, off_t len)
        memset(&stream, 0, sizeof(stream));
        stream.next_in = (void *)buf;
        stream.avail_in = size;
-       stream.next_out = data;
+       stream.next_out = (unsigned char *)data;
        stream.avail_out = len;
 
        if ((error = inflateInit(&stream)) != Z_OK) {