From d419bdae777eee388e9f5a6f0e12fdd76981bac0 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 23 May 2003 18:43:40 +1000 Subject: - (djm) Use VIS_SAFE on logged strings rather than default strnvis encoding (which encodes many more characters) --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'log.c') diff --git a/log.c b/log.c index 6bbae32d..5a28438f 100644 --- a/log.c +++ b/log.c @@ -391,7 +391,7 @@ do_log(LogLevel level, const char *fmt, va_list args) vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); } /* Escape magic chars in output. */ - strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), VIS_OCTAL); + strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), VIS_SAFE|VIS_OCTAL); if (log_on_stderr) { snprintf(fmtbuf, sizeof fmtbuf, "%s\r\n", msgbuf); -- cgit v1.2.3