From: Perttu Ahola Date: Mon, 8 Aug 2011 09:11:41 +0000 (+0300) Subject: the zlib error print function now prints to dstream (debug.txt) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=9017c51e7fee6b1da3d0309a7a8d151ae96646ec;p=zefram%2Fminetest%2Fminetest_engine.git the zlib error print function now prints to dstream (debug.txt) --- diff --git a/src/serialization.cpp b/src/serialization.cpp index ff7ca15f..f150d45f 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"<