X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fjpeg.c;h=24bf2edf06836efc52f00f8c91c45cdf0d3e5735;hb=e584fab17969f34332c92f7bf67ca2926668e197;hp=b0059b8463df3bbd4dc8c11bd94f82d18b5d3452;hpb=cf6dddb9a104461e61d8d098e6f87781da621be4;p=swftools.git diff --git a/lib/jpeg.c b/lib/jpeg.c index b0059b8..24bf2ed 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