summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-23 18:43:40 +1000
committerDamien Miller <djm@mindrot.org>2003-05-23 18:43:40 +1000
commitd419bdae777eee388e9f5a6f0e12fdd76981bac0 (patch)
tree197fe453493006f871d8256ec7db809a0f7f92f5
parent1340ec297b94f39785190793ffb915e6729702f0 (diff)
- (djm) Use VIS_SAFE on logged strings rather than default strnvis
encoding (which encodes many more characters)
-rw-r--r--ChangeLog6
-rw-r--r--log.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 213d5b4d3..2a31a2ce1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120030523
2 - (djm) Use VIS_SAFE on logged strings rather than default strnvis
3 encoding (which encodes many more characters)
4
120030520 520030520
2 - (djm) OpenBSD CVS Sync 6 - (djm) OpenBSD CVS Sync
3 - deraadt@cvs.openbsd.org 2003/05/18 23:22:01 7 - deraadt@cvs.openbsd.org 2003/05/18 23:22:01
@@ -1585,4 +1589,4 @@
1585 save auth method before monitor_reset_key_state(); bugzilla bug #284; 1589 save auth method before monitor_reset_key_state(); bugzilla bug #284;
1586 ok provos@ 1590 ok provos@
1587 1591
1588$Id: ChangeLog,v 1.2744 2003/05/19 23:24:42 djm Exp $ 1592$Id: ChangeLog,v 1.2745 2003/05/23 08:43:40 djm Exp $
diff --git a/log.c b/log.c
index 6bbae32da..5a28438f9 100644
--- a/log.c
+++ b/log.c
@@ -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);