From 9388b5d4464d13117bcaad1fda1a1b7ebd8d0264 Mon Sep 17 00:00:00 2001 From: jcid Date: Mon, 7 Apr 2008 18:55:14 +0200 Subject: - Added dStr_printable() to dlib. --- src/IO/IO.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/IO/IO.c') diff --git a/src/IO/IO.c b/src/IO/IO.c index 2e09c1b0..4b24c774 100644 --- a/src/IO/IO.c +++ b/src/IO/IO.c @@ -354,9 +354,8 @@ void a_IO_ccc(int Op, int Branch, int Dir, ChainLink *Info, case OpAbort: io = Info->LocalKey; if (io->Buf->len > 0) { - /* MSG can be truncated by embedded NULLs */ MSG_WARN("IO_write, closing with pending data not sent\n"); - MSG_WARN(" \"%s\"\n", io->Buf->str); + MSG_WARN(" \"%s\"\n", dStr_printable(io->Buf, 2048)); } /* close FD, remove from ValidIOs and remove its watch */ IO_close_fd(io, IO_StopRdWr); -- cgit v1.2.3