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: https://git.librecmc.org/?a=commitdiff_plain;h=9017c51e7fee6b1da3d0309a7a8d151ae96646ec;p=oweals%2Fminetest.git the zlib error print function now prints to dstream (debug.txt) --- 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"<