+20030523
+ - (djm) Use VIS_SAFE on logged strings rather than default strnvis
+ encoding (which encodes many more characters)
+
20030520
- (djm) OpenBSD CVS Sync
- deraadt@cvs.openbsd.org 2003/05/18 23:22:01
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);