diff --git a/CHANGES b/CHANGES index b29c65b1c48a8a3c22ddb2f3cefba74827539cc8..9cb33a1e8942c7ac590226e4f5fe7bcb0b40dab5 100644 --- a/CHANGES +++ b/CHANGES @@ -281,3 +281,8 @@ version 1.0.0a [March 9, 1998] version 1.0.0b [March 13, 1998] Quieted compiler complaints about two empty "for" loops in pngrutil.c Minor changes to makefile.s2x + Removed #ifdef/#endif around a png_free() in pngread.c +version 1.0.1 [March 14, 1998] + Changes makefile.s2x to reduce security risk of using a relative pathname + Fixed some typos in the documentation (Greg). + Fixed a problem with value of "channels" returned by png_read_update_info() diff --git a/INSTALL b/INSTALL index f1ecdffcabe292939efa5eff27daf0f507477964..4978740993f304546b2aaea6c5d54bed1bdce53a 100644 --- a/INSTALL +++ b/INSTALL @@ -1,5 +1,5 @@ -Installing libpng version 1.0.0b March 13, 1998 +Installing libpng version 1.0.1 March 15, 1998 Before installing libpng, you must first install zlib. zlib can usually be found wherever you got libpng. zlib can be @@ -10,7 +10,7 @@ zlib.h and zconf.h include files that correspond to the version of zlib that's installed. You can rename the directories that you downloaded (they -might be called "libpng-1.0.0b or "lpng100" and "zlib-1.1.1" +might be called "libpng-1.0.1 or "lpng100" and "zlib-1.1.1" or "zlib111") so that you have directories called "zlib" and "libpng". Your directory structure should look like this: diff --git a/README b/README index 93744158f893da4275ffce7b6cc93dab704ce578..ea463cd9c51a9d564e8b553c9cf1c8c666583768 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -README for libpng 1.0.0b (shared library 2.1) +README for libpng 1.0.1 (shared library 2.1) See the note about version numbers near the top of png.h See INSTALL for instructions on how to install libpng. diff --git a/TODO b/TODO index 21f963a8c418aab3fad9cbf44ecd60ca6b0e8fbe..562859a22fca18b13e29a91024e11b8b5f89eb78 100644 --- a/TODO +++ b/TODO @@ -2,6 +2,7 @@ TODO - list of things to do for libpng fix problem with C++ and EXTERN "C" add "grayscale->palette" transformation and "palette->grayscale" detection +add "grayscale" -> "grayscale+alpha" and "grayscale+FILLER" transformations improved dithering multi-lingual error and warning message support sPLT chunk handling diff --git a/libpng-1.0.0b b/libpng-1.0.0b deleted file mode 120000 index 848ef9fd1cbe97e5bdc6c4eaf0f5d0161c68c206..0000000000000000000000000000000000000000 --- a/libpng-1.0.0b +++ /dev/null @@ -1 +0,0 @@ -libpng-1.0.0b \ No newline at end of file diff --git a/libpng.3 b/libpng.3 index 56d3e9c2a5d18d9326dc8a236e0a2d0aa87cd348..88d8c9642c80bd95415cabedc2122ffe89b06cbd 100644 --- a/libpng.3 +++ b/libpng.3 @@ -1,4 +1,4 @@ -.TH LIBPNG 3 "March 13, 1998" +.TH LIBPNG 3 "March 15, 1998" .SH NAME libpng \- Portable Network Graphics (PNG) Reference Library .SH SYNOPSIS @@ -396,7 +396,7 @@ Following is a copy of the libpng.txt file that accompanies libpng. .SH LIBPNG.TXT libpng.txt - A description on how to use and modify libpng - libpng version 1.0.0b March 13, 1998 + libpng version 1.0.1 March 15, 1998 Updated and distributed by Glenn Randers-Pehrson Copyright (c) 1998, Glenn Randers-Pehrson @@ -2298,13 +2298,13 @@ the first widely used release: 0.90 0.90 90 0.90 [should be 2.0.90] 0.95 0.95 95 0.95 [should be 2.0.95] 0.96 0.96 96 0.96 [should be 2.0.96] - 0.97b 7") 1.00.97 97 1.0.1 [should be 2.0.97] + 0.97b 1.00.97 97 1.0.1 [should be 2.0.97] 0.97c 0.97 97 2.0.97 0.98 0.98 98 2.0.98 0.99 0.99 98 2.0.99 0.99a-m 0.99 99 2.0.99 - 1.00 1.00 100 2.1.0 [should be 10000] - 1.0.0 1.0.0 100 2.1.0 [should be 10000] + 1.00 1.00 100 2.1.0 [int should be 10000] + 1.0.0 1.0.0 100 2.1.0 [int should be 10000] 1.0.1 1.0.1 10001 2.1.0 Henceforth the source version will match the shared-library @@ -2312,7 +2312,7 @@ minor and patch numbers; the shared-library major version number will be used for changes in backward compatibility, as it is intended. The PNG_PNGLIB_VER macro, which is not used within libpng but is available for applications, is an unsigned integer of the form -xyyzz corresponding to the source version x.y.z (leading zeros in y and z) +xyyzz corresponding to the source version x.y.z (leading zeros in y and z). .SH "SEE ALSO" libpngpf(3), png(5) @@ -2366,7 +2366,7 @@ possible without all of you. Thanks to Frank J. T. Wojcik for helping with the documentation. -Libpng version 1.0.0b March 13, 1998: +Libpng version 1.0.1 March 15, 1998: Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc. Currently maintained by Glenn Randers-Pehrson (randeg@alumni.rpi.edu). diff --git a/libpng.txt b/libpng.txt index cc580117bde0e999175749fde784c3f6a886c404..df8f4e6420f031899e1c78024a06c7aa5df3512d 100644 --- a/libpng.txt +++ b/libpng.txt @@ -1,6 +1,6 @@ libpng.txt - A description on how to use and modify libpng - libpng version 1.0.0b March 13, 1998 + libpng version 1.0.1 March 15, 1998 Updated and distributed by Glenn Randers-Pehrson Copyright (c) 1998, Glenn Randers-Pehrson diff --git a/libpngpf.3 b/libpngpf.3 index 4458ba882f78ac6ebd583d920991f287ca8f39f6..7ba582ebe2f4dece0e67201e93d8f7c4aa7c9195 100644 --- a/libpngpf.3 +++ b/libpngpf.3 @@ -1,4 +1,4 @@ -.TH LIBPNGPF 3 "March 13, 1998" +.TH LIBPNGPF 3 "March 15, 1998" .SH NAME libpng \- Portable Network Graphics (PNG) Reference Library (private functions) diff --git a/png.5 b/png.5 index cc2149f63e11434e737467670f0f1d454ace1dff..30244aabb86dc3b1f2d10e4dc992772b02dc4a7b 100644 --- a/png.5 +++ b/png.5 @@ -1,4 +1,4 @@ -.TH PNG 5 "March 13, 1998" +.TH PNG 5 "March 15, 1998" .SH NAME png \- Portable Network Graphics (PNG) format .SH DESCRIPTION diff --git a/png.c b/png.c index 0b72600d15758f2811ac34731831aa89688231fb..127b47b68ff6c7e4f13d5277a8f74e5698537b16 100644 --- a/png.c +++ b/png.c @@ -1,12 +1,12 @@ /* png.c - location for general purpose libpng functions * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ #define PNG_INTERNAL @@ -16,7 +16,7 @@ /* Version information for C files. This had better match the version * string defined in png.h. */ -char png_libpng_ver[12] = "1.0.0b"; +char png_libpng_ver[12] = "1.0.1"; /* Place to hold the signature string for a PNG file. */ png_byte FARDATA png_sig[8] = {137, 80, 78, 71, 13, 10, 26, 10}; diff --git a/png.h b/png.h index 0b6ab7b627b924b751ad91be66e584f3174003e5..36541e916ee5c66cd99b5be789818540186fa0b4 100644 --- a/png.h +++ b/png.h @@ -1,12 +1,12 @@ /* png.h - header file for PNG reference library * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see the COPYRIGHT NOTICE below. * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998 Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * Note about libpng version numbers: * @@ -37,7 +37,7 @@ * used for changes in backward compatibility, as it is intended. * The PNG_PNGLIB_VER macro, which is not used within libpng but * is available for applications, is an unsigned integer of the form - * xyyzz corresponding to the source version x.y.z (leading zeros in y and z) + * xyyzz corresponding to the source version x.y.z (leading zeros in y and z). * * * See libpng.txt for more information. The PNG specification is available @@ -118,13 +118,13 @@ extern "C" { */ /* Version information for png.h - this should match the version in png.c */ -#define PNG_LIBPNG_VER_STRING "1.0.0b" +#define PNG_LIBPNG_VER_STRING "1.0.1" -/* Gareful here. At one time, Guy wanted to use 082, but that would be octal. - * We must not include leading zeroes. +/* Careful here. At one time, Guy wanted to use 082, but that would be octal. + * We must not include leading zeros. * Versions 0.7 through 1.0.0 were in the range 0 to 100 here (only * version 1.0.0 was mis-numbered 100 instead of 10000). From - * version 1.0.1 it's xxyyzz, where x=major, y=minor, z-bugfix*/ + * version 1.0.1 it's xxyyzz, where x=major, y=minor, z=bugfix */ #define PNG_LIBPNG_VER 10001 /* 1.0.1 */ /* variables declared in png.c - only it needs to define PNG_NO_EXTERN */ diff --git a/pngconf.h b/pngconf.h index 9331a2c1b76a7e17f33738cf9b5b80f29a5be3a2..675f292babdeee0892af6c179a4fd6af236aa29d 100644 --- a/pngconf.h +++ b/pngconf.h @@ -1,12 +1,12 @@ /* pngconf.h - machine configurable file for libpng * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ /* Any machine specific code is near the front of this file, so if you diff --git a/pngerror.c b/pngerror.c index 74b27334a1a95bd6df48e4a99de05d1aa594d3af..9bf58a4a5cf64f32e75e0c52b9931f9634e125bf 100644 --- a/pngerror.c +++ b/pngerror.c @@ -1,12 +1,12 @@ /* pngerror.c - stub functions for i/o and memory allocation * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file provides a location for all error handling. Users which * need special error handling are expected to write replacement functions diff --git a/pngget.c b/pngget.c index 3c066792c49c9a8320f20fefd417d8342eb52ed2..eb2f64fade15b5154410c9ef7da40b5cd7a5f62b 100644 --- a/pngget.c +++ b/pngget.c @@ -1,12 +1,12 @@ /* pngget.c - retrieval of values from info struct * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ #define PNG_INTERNAL diff --git a/pngmem.c b/pngmem.c index 53d5c17c82e9f7950bcc634fc07f7c0323596ecd..2fa3627dc4cafa0ed2f6a3d3139d654641bdc319 100644 --- a/pngmem.c +++ b/pngmem.c @@ -1,12 +1,12 @@ /* pngmem.c - stub functions for memory allocation * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file provides a location for all memory allocation. Users which * need special memory handling are expected to modify the code in this file diff --git a/pngpread.c b/pngpread.c index dad9a91fbbd2ff3677b57f54bae097ac84ccc543..0f0d466fa23822dedaf9a27cbc3bfdcd9b60a2d8 100644 --- a/pngpread.c +++ b/pngpread.c @@ -1,12 +1,12 @@ /* pngpread.c - read a png file in push mode * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ #define PNG_INTERNAL diff --git a/pngread.c b/pngread.c index 92c068a5a1688e7dd44949fffc62520debd84005..1618b73095b67919b2d0e19d9fa2defa721d908b 100644 --- a/pngread.c +++ b/pngread.c @@ -1,12 +1,12 @@ /* pngread.c - read a PNG file * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file contains routines that an application calls directly to * read a PNG file or stream. @@ -123,7 +123,7 @@ png_read_init(png_structp png_ptr) } /* Read the information before the actual image data. This has been - * changed in v0.90 to allow reading a file which already has the magic + * changed in v0.90 to allow reading a file that already has the magic * bytes read from the stream. You can tell libpng how many bytes have * been read from the beginning of the stream (up to the maxumum of 8) * via png_set_sig_bytes(), and we will only check the remaining bytes diff --git a/pngrio.c b/pngrio.c index 0d9bd8a6e8d6a95ada3ed4508c05b51dc41746f3..7adb48f54c940c70beb3346acdc9e512e32ea122 100644 --- a/pngrio.c +++ b/pngrio.c @@ -1,12 +1,12 @@ /* pngrio.c - functions for data input * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file provides a location for all input. Users which need * special handling are expected to write a function which has the same diff --git a/pngrtran.c b/pngrtran.c index 3db73263485e0f7c9849216d398f09cf1ba2761d..885af53905a58308ca3e67142a3255f833992320 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -1,12 +1,12 @@ /* pngrtran.c - transforms the data in a row for PNG readers * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file contains functions optionally called by an application * in order to tell libpng how to handle data when reading a PNG. @@ -665,7 +665,6 @@ png_init_read_transformations(png_structp png_ptr) if (png_ptr->transformations & PNG_INVERT_ALPHA) { #if defined(PNG_READ_EXPAND_SUPPORTED) - /* GRR BUG #1: was (png_ptr->transformations & !PNG_EXPAND) */ if (!(png_ptr->transformations & PNG_EXPAND)) #endif { @@ -715,11 +714,6 @@ png_init_read_transformations(png_structp png_ptr) { double g, gs; -/* - GRR BUG #3: inconsistent with handling of full RGBA below - g = 1.0 / png_ptr->background_gamma; - gs = 1.0 / (png_ptr->background_gamma * png_ptr->screen_gamma); - */ switch (png_ptr->background_gamma_type) { case PNG_BACKGROUND_GAMMA_SCREEN: @@ -740,17 +734,7 @@ png_init_read_transformations(png_structp png_ptr) gs = 1.0; /* back */ } - if ( -/* - GRR BUG #2: This creates self-inconsistent images--fully - transparent and fully opaque look fine, but translucent - pixels are wrong (too bright if XV's code can be trusted). - Commenting it out makes an internally self-consistent - image, but still not consistent with RGBA version of same - thing (again, too bright in XV). - png_ptr->background_gamma_type==PNG_BACKGROUND_GAMMA_SCREEN|| - */ - fabs(gs - 1.0) < PNG_GAMMA_THRESHOLD) + if ( fabs(gs - 1.0) < PNG_GAMMA_THRESHOLD) { back.red = (png_byte)png_ptr->background.red; back.green = (png_byte)png_ptr->background.green; @@ -1005,8 +989,7 @@ png_read_transform_info(png_structp png_ptr, png_infop info_ptr) #endif #if defined(PNG_READ_GRAY_TO_RGB_SUPPORTED) - if ((png_ptr->transformations & PNG_GRAY_TO_RGB) && - !(info_ptr->color_type & PNG_COLOR_MASK_COLOR)) + if (png_ptr->transformations & PNG_GRAY_TO_RGB) info_ptr->color_type |= PNG_COLOR_MASK_COLOR; #endif @@ -1018,12 +1001,8 @@ png_read_transform_info(png_structp png_ptr, png_infop info_ptr) info_ptr->channels = 1; #if defined(PNG_READ_STRIP_ALPHA_SUPPORTED) - if ((png_ptr->transformations & PNG_STRIP_ALPHA) && - info_ptr->color_type & PNG_COLOR_MASK_ALPHA) - { - info_ptr->channels--; + if (png_ptr->transformations & PNG_STRIP_ALPHA) info_ptr->color_type &= ~PNG_COLOR_MASK_ALPHA; - } #endif #if defined(PNG_READ_FILLER_SUPPORTED) diff --git a/pngrutil.c b/pngrutil.c index 3591b0e8c6b09203d57a9d86a0a782bd89a8ffda..1c379069391ec763fbfb214db0dd90125004564c 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -1,12 +1,12 @@ /* pngrutil.c - utilities to read a PNG file * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file contains routines which are only called from within * libpng itself during the course of reading an image. @@ -1114,7 +1114,7 @@ png_handle_pCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) } for (buf = units; *buf != 0x00; buf++) - /* Empty loop to move past the units string. */ ; + /* Empty loop to move past the units string. */ ; png_debug(3, "Allocating pCAL parameters array\n"); params = (png_charpp)png_malloc(png_ptr, (png_uint_32)(nparams @@ -1127,7 +1127,7 @@ png_handle_pCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) png_debug1(3, "Reading pCAL parameter %d\n", i); for (params[i] = buf; *buf != 0x00 && buf <= endptr; buf++) - /* Empty loop to move past each parameter string */ ; + /* Empty loop to move past each parameter string */ ; /* Make sure we haven't run out of data yet */ if (buf > endptr) diff --git a/pngset.c b/pngset.c index c68431b0c7a5378233b81d509013ca33d066a7da..aa85f24b6f9adcf1b4cffc45ad3403c3fdcfc161 100644 --- a/pngset.c +++ b/pngset.c @@ -1,12 +1,12 @@ /* pngset.c - storage of image information into info struct * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * The functions here are used during reads to store data from the file * into the info struct, and during writes to store application data diff --git a/pngtest.c b/pngtest.c index 215c3ad2e0dc020f13f55da42e0f939113de432a..22cbcb3ea2aa44e1e6503d33ccf8b6fa3d30e5b8 100644 --- a/pngtest.c +++ b/pngtest.c @@ -1,12 +1,12 @@ /* pngtest.c - a simple test program to test libpng * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This program reads in a PNG image, writes it out again, and then * compares the two files. If the files are identical, this shows that diff --git a/pngtrans.c b/pngtrans.c index 2d83ca8fd814f2ca07ea97e228a012a3ab3363b7..d38dbd19deb1632ec8839a60e78928bbff511758 100644 --- a/pngtrans.c +++ b/pngtrans.c @@ -1,12 +1,12 @@ /* pngtrans.c - transforms the data in a row (used by both readers and writers) * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ #define PNG_INTERNAL diff --git a/pngwio.c b/pngwio.c index 17a087f1f16e15c7c127c56d9429a221d664bef5..444a123b58c13a8ab96cd60e38c8bfdea36521af 100644 --- a/pngwio.c +++ b/pngwio.c @@ -1,12 +1,12 @@ /* pngwio.c - functions for data output * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 * * This file provides a location for all output. Users which need * special handling are expected to write functions which have the same diff --git a/pngwrite.c b/pngwrite.c index c2f9d6a315a623510851d9d667a3ec9e99413cf3..9980027e309e53319b8507124fa856bc1b8e1ebe 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -1,12 +1,12 @@ /* pngwrite.c - general routines to write a PNG file * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ /* get internal access to png.h */ diff --git a/pngwtran.c b/pngwtran.c index fa27506546c9dacf1fbeea0c5e70e4461fbf7602..d85e01536e43c040f0b1f928684e245d2678659c 100644 --- a/pngwtran.c +++ b/pngwtran.c @@ -1,12 +1,12 @@ /* pngwtran.c - transforms the data in a row for PNG writers * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ #define PNG_INTERNAL diff --git a/pngwutil.c b/pngwutil.c index 775f3da8bc2ee006a4f0139fc3cecb4b8128a57d..492bde7bb0520e78c7182f6a237778a7184f4b23 100644 --- a/pngwutil.c +++ b/pngwutil.c @@ -1,12 +1,12 @@ /* pngwutil.c - utilities to write a PNG file * - * libpng 1.0.0b + * libpng 1.0.1 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * March 13, 1998 + * March 15, 1998 */ #define PNG_INTERNAL diff --git a/scripts/makefile.s2x b/scripts/makefile.s2x index 1a34a17f94a300c8bc85622080589e9f874d8a29..163f36382682756c68f2286d4e84849d0bef910a 100644 --- a/scripts/makefile.s2x +++ b/scripts/makefile.s2x @@ -7,10 +7,13 @@ CC=gcc # Where the zlib library and include files are located -# ZLIBLIB=/usr/local/lib -# ZLIBINC=/usr/local/include -ZLIBLIB=../zlib -ZLIBINC=../zlib +# Changing these to ../zlib poses a security risk. If you want +# to have zlib in an adjacent directory, specify the full path instead of "..". +#ZLIBLIB=../zlib +#ZLIBINC=../zlib + +ZLIBLIB=/usr/local/lib +ZLIBINC=/usr/local/include WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \