summaryrefslogtreecommitdiff
path: root/pngwrite.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2000-11-23 11:51:42 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-04-06 16:05:39 -0500
commitd56aca7104bbc23cc37344169fa2b235e0a1392f (patch)
treeebeb4c0f868f828b09d1e5c742423e56d07143df /pngwrite.c
parentf5ed0e130c408c278907f1204176df02c55ff931 (diff)
downloadlibpng-d56aca7104bbc23cc37344169fa2b235e0a1392f.tar.gz
Imported from libpng-1.0.9beta3.tarv1.0.9beta3
Diffstat (limited to 'pngwrite.c')
-rw-r--r--pngwrite.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pngwrite.c b/pngwrite.c
index ba79c7b83..bffad0f02 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -1,7 +1,7 @@
/* pngwrite.c - general routines to write a PNG file
*
- * libpng 1.0.9beta2 - November 19, 2000
+ * libpng 1.0.9beta3 - November 23, 2000
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -375,7 +375,11 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
/* write end of PNG file */
png_write_IEND(png_ptr);
+#if 0
+/* This flush, added in libpng-1.0.8, causes some applications to crash
+ because they do not set png_ptr->output_flush_fn */
png_flush(png_ptr);
+#endif
}
#if defined(PNG_WRITE_tIME_SUPPORTED)
@@ -488,7 +492,7 @@ png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
removed from version 2.0.0 and beyond because the previous test
would have already rejected it. */
- if (user_png_ver[4] == '6' && user_png_ver[2] == '0' &&
+ if (user_png_ver[4] == '6' && user_png_ver[2] == '0' &&
user_png_ver[0] == '1' && user_png_ver[5] == '\0')
{
png_error(png_ptr,