X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fjpeg.c;h=66882b0182b1f88a198e03b7f439bbe6ede64f2a;hb=66a03382aab040571f94b0861719753bda3ff8f1;hp=dee4dfa6383b51add209c4c6211d9f296a22ab93;hpb=f37e8f18c9aabe6b7298ef037df26a02bfc4f361;p=swftools.git 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