git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cc2041
)
fixed g++ warning
author
kramm
<kramm>
Sun, 19 Nov 2006 21:36:29 +0000
(21:36 +0000)
committer
kramm
<kramm>
Sun, 19 Nov 2006 21:36:29 +0000
(21:36 +0000)
lib/png.c
patch
|
blob
|
history
diff --git
a/lib/png.c
b/lib/png.c
index
f114e91
..
f517151
100644
(file)
--- 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);