X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fjpeg.c;h=66882b0182b1f88a198e03b7f439bbe6ede64f2a;hp=dee4dfa6383b51add209c4c6211d9f296a22ab93;hb=bf04757cd94e94c1f67fa3d2a4e3e59fa5bce0c0;hpb=f37e8f18c9aabe6b7298ef037df26a02bfc4f361 diff --git a/lib/jpeg.c b/lib/jpeg.c index dee4dfa..66882b0 100644 --- a/lib/jpeg.c +++ b/lib/jpeg.c @@ -313,13 +313,13 @@ 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