From: kramm Date: Sun, 19 Nov 2006 21:36:29 +0000 (+0000) Subject: fixed g++ warning X-Git-Tag: release-0-8-0~123 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=5956b76b28e80a49abd7409520282edc5e11dfc0;p=swftools.git fixed g++ warning --- diff --git a/lib/png.c b/lib/png.c index f114e91..f517151 100644 --- a/lib/png.c +++ b/lib/png.c @@ -883,7 +883,7 @@ void writePNG(char*filename, unsigned char*data, int width, int height) } datalen2 = datalen3; - data2 = malloc(datalen2); + data2 = (U8*)malloc(datalen2); if((ret = compress (data2, &datalen2, data3, datalen3)) != Z_OK) { fprintf(stderr, "zlib error in pic %d\n", ret);