From 9017c51e7fee6b1da3d0309a7a8d151ae96646ec Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 8 Aug 2011 12:11:41 +0300 Subject: [PATCH] the zlib error print function now prints to dstream (debug.txt) --- src/serialization.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/serialization.cpp b/src/serialization.cpp index ff7ca15f2..f150d45f0 100644 --- a/src/serialization.cpp +++ b/src/serialization.cpp @@ -27,28 +27,28 @@ with this program; if not, write to the Free Software Foundation, Inc., /* report a zlib or i/o error */ void zerr(int ret) { - fputs("zerr: ", stderr); + dstream<<"zerr: "; switch (ret) { case Z_ERRNO: if (ferror(stdin)) - fputs("error reading stdin\n", stderr); + dstream<<"error reading stdin"<