diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/IO.c | 3 | ||||
-rw-r--r-- | src/IO/http.c | 3 | ||||
-rw-r--r-- | src/capi.c | 3 |
3 files changed, 3 insertions, 6 deletions
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); diff --git a/src/IO/http.c b/src/IO/http.c index 8ccb015c..a6acc031 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -278,8 +278,7 @@ Dstr *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) dStr_free(s_port, TRUE); dStr_free(full_path, TRUE); dStr_free(proxy_auth, TRUE); - /* debug msg will fail on embedded NULLs */ - DEBUG_MSG(4, "Query:\n%s", query->str); + DEBUG_MSG(4, "Query:\n%s\n", dStr_printable(query, 8192)); return query; } @@ -228,8 +228,7 @@ static int Capi_dpi_verify_request(DilloWeb *web) MSG("Capi_dpi_verify_request: Permission Denied!\n"); MSG(" URL_STR : %s\n", URL_STR(web->url)); if (URL_FLAGS(web->url) & URL_Post) { - /* MSG will fail on embedded NULLs */ - MSG(" URL_DATA: %s\n", URL_DATA(web->url)->str); + MSG(" URL_DATA: %s\n", dStr_printable(URL_DATA(web->url), 1024)); } } return allow; |