[PATCH] pngcheck: Output zlib version error/warning to stderr

Lucy Phipps <[email protected]> Wed, 9 Dec 2020 08:42:32 +0000
Newsgroups gmane.comp.graphics.png.devel
Message-ID <CAGOd_F_6aAVg=irZFj7=hQR-TmTELvz+pqet9nk24rsAPed7Jg@mail.gmail.com>
From fb423b03ae0f13a76c1528a7afb1373319df5ef8 Mon Sep 17 00:00:00 2001
From: Lemures Lemniscati <[email protected]>
Date: Sun, 18 Mar 2018 10:25:51 +0900
Subject: [PATCH] Output zlib version error/warning to stderr

---
 pngcheck.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pngcheck.c b/pngcheck.c
index 7f07b77..6da7950 100644
--- a/pngcheck.c
+++ b/pngcheck.c
@@ -670,13 +670,13 @@ int main(int argc, char *argv[])
 #ifdef USE_ZLIB
     /* make sure we're using the zlib version we were compiled to use */
     if (zlib_version[0] != ZLIB_VERSION[0]) {
-      printf("zlib error:  incompatible version (expected %s,"
+      fprintf(stderr, "zlib error:  incompatible version (expected %s,"
         " using %s):  skipping zlib check\n\n", ZLIB_VERSION,
zlib_version);
       check_zlib = 0;
       if (verbose > 1)
         verbose = 1;
     } else if (strcmp(zlib_version, ZLIB_VERSION) != 0) {
-      printf("zlib warning:  different version (expected %s,"
+      fprintf(stderr, "zlib warning:  different version (expected %s,"
         " using %s)\n\n", ZLIB_VERSION, zlib_version);
     }
 #endif /* USE_ZLIB */

_______________________________________________
png-mng-implement mailing list
png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/png-mng-implement