diff --git a/backend/gif.c b/backend/gif.c index 7ebd43d6..8c7c5908 100644 --- a/backend/gif.c +++ b/backend/gif.c @@ -491,9 +491,9 @@ int gif_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width /* call lzw encoding */ byte_out = gif_lzw( - lzwoutbuf, + (unsigned char *) lzwoutbuf, image_height * image_width, - rotated_bitmap, + (unsigned char *) rotated_bitmap, image_height * image_width); if (byte_out <= 0) {