X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fjpeg.c;h=66882b0182b1f88a198e03b7f439bbe6ede64f2a;hp=b0059b8463df3bbd4dc8c11bd94f82d18b5d3452;hb=bf04757cd94e94c1f67fa3d2a4e3e59fa5bce0c0;hpb=cf6dddb9a104461e61d8d098e6f87781da621be4 diff --git a/lib/jpeg.c b/lib/jpeg.c index b0059b8..66882b0 100644 --- a/lib/jpeg.c +++ b/lib/jpeg.c @@ -313,7 +313,7 @@ int jpeg_load(const char*filename, unsigned char**dest, int*_width, int*_height) int width = *_width = cinfo.output_width; int height = *_height = cinfo.output_height; - *dest = malloc(width*height*4); + *dest = (unsigned char*)malloc(width*height*4); int y; for (y=0;y