diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-23 18:43:40 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-23 18:43:40 +1000 |
commit | d419bdae777eee388e9f5a6f0e12fdd76981bac0 (patch) | |
tree | 197fe453493006f871d8256ec7db809a0f7f92f5 /log.c | |
parent | 1340ec297b94f39785190793ffb915e6729702f0 (diff) |
- (djm) Use VIS_SAFE on logged strings rather than default strnvis
encoding (which encodes many more characters)
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -391,7 +391,7 @@ do_log(LogLevel level, const char *fmt, va_list args) | |||
391 | vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); | 391 | vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); |
392 | } | 392 | } |
393 | /* Escape magic chars in output. */ | 393 | /* Escape magic chars in output. */ |
394 | strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), VIS_OCTAL); | 394 | strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), VIS_SAFE|VIS_OCTAL); |
395 | 395 | ||
396 | if (log_on_stderr) { | 396 | if (log_on_stderr) { |
397 | snprintf(fmtbuf, sizeof fmtbuf, "%s\r\n", msgbuf); | 397 | snprintf(fmtbuf, sizeof fmtbuf, "%s\r\n", msgbuf); |