aboutsummaryrefslogtreecommitdiff
path: root/src/png.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2010-02-16 11:54:18 -0300
committerJorge Arellano Cid <jcid@dillo.org>2010-02-16 11:54:18 -0300
commitd9f18c3af927a5c69fd94fe5640eaac5c8e2574e (patch)
tree9cdde824b3b8b02002097dd53a4025023afdd0d0 /src/png.c
parentc41381ed695b3553b0454adcffca0d6a0e5520e9 (diff)
parentceb4a77cb81853fb7e7ca6f3c10f8e625f585496 (diff)
merge
Diffstat (limited to 'src/png.c')
-rw-r--r--src/png.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/png.c b/src/png.c
index 353ebaa3..6a5f4422 100644
--- a/src/png.c
+++ b/src/png.c
@@ -345,8 +345,7 @@ static void Png_write(DilloPng *png, void *Buf, uint_t BufSize)
return; /* need MORE data */
}
/* check the image signature - DON'T update ipbufstart! */
- if (!png_check_sig(png->ipbuf, DATASIZE)) {
- /* you lied to me about it being a PNG image */
+ if (png_sig_cmp(png->ipbuf, 0, DATASIZE)) {
MSG_WARN("\"%s\" is not a PNG file.\n", URL_STR(png->url));
png->state = IS_finished;
break;